Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

Range Order

2 min read
Pronunciation
[reynj awr-der]
Analogy
Think of a range order like a specialty store in a shopping district rather than a department store. Instead of selling everything (providing liquidity across all prices), a specialty store focuses deeply on one category (a specific price range). This specialization allows for more efficient use of inventory (capital) where it's most likely to be useful, but means you won't serve customers looking for products outside your specialty (trades outside your price range).
Definition
A type of liquidity provision order in decentralized exchanges (particularly concentrated liquidity AMMs) where assets are only deployed within a specific price range. Range orders allow liquidity providers to focus their capital within customized price boundaries rather than across the entire price spectrum.
Key Points Intro
Range orders have transformed liquidity provision in decentralized exchanges through several innovative features.
Key Points

Capital efficiency: Concentrates liquidity in useful price ranges rather than spreading it thinly across all possible prices.

Customization: Allows liquidity providers to express price views by selecting specific ranges where they expect trading to occur.

Composability: Can be programmatically managed by smart contracts to implement complex liquidity provision strategies.

Risk management: Provides automatic protection against downside risk by converting to the quote asset as prices fall below range.

Example
Alice believes ETH will trade between $2,000 and $2,500 in the coming week. Instead of providing general liquidity across all price points, she creates a range order in Uniswap v3, depositing her capital exclusively within this range. Her liquidity is now 5x more capital efficient within this range than it would be in a traditional AMM, earning her higher fees when trades occur within her specified price boundaries.
Technical Deep Dive
Range orders are implemented using concentrated liquidity positions, typically through non-fungible positions that track ownership of specific price ranges. The mathematics behind range orders usually employs a constant product formula (x*y=k) applied to virtual reserves that change based on the current price relative to the position's range. When price moves outside the specified range, the position becomes composed entirely of one asset: the base asset if below range or the quote asset if above range. This conversion happens along a price curve defined by the AMM's formula, effectively executing a limit order at the range boundaries. Position values can be calculated using the formula: V = √(P) * (√(Pu) - √(Pl)) for in-range positions, where Pl and Pu are the lower and upper price boundaries.
Security Warning
Range orders can be subject to sandwich attacks during range entry and exit. When creating or modifying range orders, use appropriate slippage protection and consider using private transaction pools to minimize MEV extraction. Also be aware that smart contract bugs in concentrated liquidity protocols could put your funds at risk.
Caveat
Range orders expose liquidity providers to increased impermanent loss compared to traditional AMM positions when prices move significantly. They also require more active management as positions need rebalancing when prices move outside the specified range. Transaction costs for creating and adjusting range orders can be substantial on congested networks, potentially offsetting efficiency gains for smaller liquidity providers or frequent adjustments.

Range Order - Related Articles

No related articles for this term.