Liquidity Range Order

A narrow liquidity position that behaves like a limit order and earns fees while it waits.

Basically

You put one token into a narrow price range on a decentralised exchange. Your deposit gradually changes into the other token as the price crosses that range, working like a limit order.

Key Takeaways

  • A liquidity range order is a concentrated liquidity position placed entirely above or below the current market price. The position converts from one token to the other as the price crosses the range, acting like a limit order.
  • Range orders earn LP trading fees while they fill, unlike traditional limit orders. They carry reversal risk, so the swap can undo itself if the price crosses back before you withdraw the position.
  • Uniswap v3 introduced range orders through its tick-based liquidity system. Uniswap v4 hooks can automate withdrawal after the price crosses the range, removing the need for manual monitoring.

What Is a Liquidity Range Order?

A liquidity range order executes swap-like trades on a decentralised exchange through liquidity in a narrow price band entirely above or below the current price. The out-of-range position holds only one deposited token, and trades gradually convert it into the paired token as the market price moves through the band. The position holds only the other token once the price has fully crossed the range, which is equivalent to a filled limit order.

The concept emerged from concentrated liquidity, the mechanism introduced by Uniswap v3 in May 2021. Earlier automated market makers spread capital uniformly across all prices from zero to infinity, so providers could not target a specific execution price. Concentrated liquidity lets providers choose a price range, and range orders use that granularity to replicate order-book-style trading within an AMM framework.

How It Works

Range orders rely on tick-based price segmentation in concentrated liquidity pools. They also use single-sided deposits for out-of-range positions.

Tick System and Price Ranges

Uniswap v3 and v4 divide the price curve into discrete ticks, with each tick representing a 0.01% price increment. Liquidity can only be placed on boundaries that are multiples of the pool's tick spacing, which varies by fee tier.

A range order placed on a single tick spacing, the narrowest possible range, behaves most like a traditional limit order because the entire position fills within a very small price movement. Wider ranges result in gradual fills across a broader price band.

Placing a Range Order

The process for setting up a range order differs for buying and selling. You choose the setup that matches your trade.

Fill Mechanics

Range orders fill incrementally as individual swaps execute against the pool, rather than instantaneously like order book limit orders. Each swap that moves the price through part of the range converts a proportional share of the deposited token. The position is fully "filled" only when the current price has moved entirely past the range boundaries.

The position earns trading fees from every swap that touches its liquidity during the fill process. The range order generates yield while waiting to execute, which is a unique advantage over traditional limit orders.

Example: ETH/USDC Range Order

ETH trades at $2,000 in this example. You want to sell ETH at $2,100.

Range Orders vs. Order Book Limit Orders

Range orders approximate limit orders. Several differences distinguish the two.

Take-Profit Orders

A trader holding a token can set up a range order above the current price to sell automatically into strength. Unlike a centralised exchange limit order, the position earns fees while waiting for the price to reach the target. The approach is particularly useful for tokens that only trade on decentralised exchanges with no native order book.

Dollar-Cost Averaging on Dips

You can place range orders at progressively lower price levels to create a series of buy orders that fill as the price drops. Each range order converts stablecoins into the target token at a predefined price band, approximating a dollar-cost averaging strategy.

Stablecoin Rotation

Range orders can swap between stablecoins at near-parity prices in stablecoin swap pools with very tight tick spacing. A provider deposits one stablecoin just above the 1:1 price, and normal trading activity converts it to the other stablecoin while earning fees on every swap.

Market Making with Directional Bias

Range orders allow market makers to express a directional view, unlike neutral standard LP positions. A provider expecting an upward move places sell-side liquidity at target levels, earning fees while the position fills at favourable prices.

Reversal Risk

The biggest risk unique to range orders is reversal. If the price crosses through the range and then reverses before you withdraw the position, trading resumes in the opposite direction and converts the position back toward the original token, effectively undoing the swap. A trader who wanted to sell ETH at $2,100 might find their position back in ETH if the price briefly touches $2,100 and then drops.

Traditional limit orders do not carry this reversal risk because a filled order stays filled. Range orders require timely withdrawal. Automated solutions, including Uniswap v4's hook system, can trigger automatic withdrawal when the price exits the range, mitigating this risk.

Impermanent Loss

Impermanent loss applies while the price is inside the range, although range orders are designed to fully convert between tokens. A narrower range concentrates the liquidity more and makes the position more sensitive to price movement. If you withdraw the position while the price is still within the range, you receive a mix of both tokens rather than a clean conversion, resulting in a partial fill with potential impermanent loss.

Tick Spacing Constraints

The pool's fee tier determines the granularity of a range order. High-fee pools (1%) have wide tick spacing of 200, so the narrowest range order spans roughly 2% of the price and is far less precise than an order book limit order. For tighter execution, you must use lower-fee pools with narrower tick spacing, which may have less liquidity.

Gas Costs

A range order requires at least two on-chain transactions: one to add liquidity and one to remove it. On high-fee networks, the gas cost may exceed the trading fees earned, making range orders impractical for small positions. Layer 2 networks and chains with lower transaction costs significantly improve the economics of range orders.

Front-Running and MEV

Range orders are visible in the mempool before execution, like any on-chain liquidity provision. MEV searchers can observe the liquidity placement and potentially sandwich the withdrawal transaction, extracting value from the trader. Private transaction submission or MEV-protection tools can reduce this exposure.

Uniswap v4 and Hook-Based Automation

Uniswap v4 introduces a hook system that allows custom logic to execute at specific points in a pool's lifecycle. For range orders, the key improvement is the afterSwap hook: a smart contract can monitor whether the current tick has crossed the range order's boundary and automatically withdraw the liquidity when the order is filled.

Hook-based automation solves the reversal problem inherent in v3 range orders. Without hooks, traders needed external bots or manual monitoring to withdraw positions before a price reversal. With hooks, the withdrawal is atomic and happens in the same transaction as the swap that crosses the boundary.

Comparison with Other DEX Order Types

Range orders sit between passive liquidity provision and active trading. Their place alongside other DEX order types helps you choose the right tool.

Why It Matters

Range orders bridge the gap between AMMs and order books, giving liquidity providers and traders a tool for expressing directional views on-chain without leaving the AMM ecosystem. DeFi protocols building payment infrastructure or token swaps can use range orders for programmatic token conversion at target prices. Uses include treasury management, automated rebalancing, and stablecoin operations.

Concentrated liquidity AMMs are expanding across Layer 2 networks, where gas costs are low enough to make frequent position management practical. Range orders are becoming an increasingly viable alternative to off-chain order books for price-targeted execution as a result.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms