@tianjinfan·11 charts
Analyze liquidity-adding in latest week
for a token pair <X,Y>, suppose adding liquidity (amoutX, amoutY)
- if amoutX>0 and amoutY>0, this provides in-range liquidity, liquidity provider has Neutral opinion on both tokens.
- if amoutX>0 and amoutY=0, that is a Limit Order. LP's intention is selling X (aka, token0) and buying Y (aka, token1). I name this type of orders as "S0L1", which mean short token0 and long token1.
- if amoutX=0 and amoutY>0, that is a Limit Order. LP's intention is selling Y (aka, token1) and buying X (aka, token0). I name this type of orders as "S1L0", which mean short token1 and long token0.
What is Uniswap v3 Limit Order?
- Suppose you have some tokenX, and its current market price is Pc. You want to swap all your tokenX into tokenY, when tokenX's price rise to your expected price (> current price Pc).
- What you can do is providing Out-of-range liquidity at a price range [Pa,Pb], where Pa > Pc. Since current market price Pc is out of the range [Pa,Pb], so this range is inactive now and only composed of tokenX. This action is called "placing a Limit Order".
- If tokenX's price is indeed rising as you expected, price range [Pa,Pb] will be first activated and then crossed. At this time, all your tokenX is swapped into tokenY. We can say "the LimitOrder is fulfilled".
What's the impact of LimitOrder to token price?
Suppose you provide out-of-range liquidity which only composed of tokenX, that has two implication:
- You provide liquidity at a price range which is higher than current X's price. Your liquidity range is activated only when X's market price rises. So in short term, you expect X's price will rise.
- After all, your intention is swapping all your tokenX into tokenY, that is, selling your tokenX and buy tokenY. So in long term, you go short (bearish) on tokenX, and go long (bullish) on tokenY.
liquidity-adding each token pair
(by 2024-02-14)
- for pair USDC-WETH, 40% added liquidity (in USD) is S0L1, that is bearish on USDC and bullish on WETH.
- for pair WBTC-WETH, 30% S1L0, 0% S0L1, indicates market prefer BTC than ETH.
- for pair USDC-USDT, 90% new liquidity is S0L1, indicates a strong market trend short USDC and long USDT.
liquidity-adding each token
(by 2024-02-14)
- USDC: 77% limit order volume go short
- WETH: short & long limit order nearly half to half.
- USDT: 75% limit order volume go long.
- WBTC: 65% limit order go long.
Analyze daily short/long limit order and token price for each token
draw following daily metrics side by side
- short limit-order USD volume
- long limit-order USD volume
- token median price
from following plot, we can observe some patterns
- if there is huge long amount, the price has a great chance to rise in following days
- if there is huge short amount, the price has a great chance to drop in following days
Limit Order Execution Status
Answer questions like below:
- Who like to perform limit orders?
- How many limit orders can be fulfilled? or partial filled? or revoked?
- How many limit orders complete as profitable?
Limit Order can be categorized into following 5 status:
- complete_order:
- add liquidity (x=0,y>0), remove liquidity (x>0, y=0), or,
- add liquidity (x>0,y=0), remove liquidity (x=0, y>0)
- partial_order:
- add liquidity (x>0,y=0), remove liquidity (x>0, y>0), or,
- add liquidity (x=0,y>0), remove liquidity (x>0, y>0)
- revoke_order:
- add liquidity (x=0,y>0), remove liquidity (x=0, y>0), or
- add liquidity (x>0,y=0), remove liquidity (x>0, y=0)
- order_still_open:
- only has "add liquidity" record, cannot find "remove liquidity" record within query time range
Discovery
- more than half of the limit orders cannot be closed within one week
- even the limit order is closed, most of these closed orders are just revoked, other than waiting for the price range become active.
- complete_order has more than 70% probability to get a positive profit. However, return rate isn't high.
- compare with complete_order, partial_order has higher probability to win, and have larger return rate.