Anatomy of an order book
An order book is two sorted lists. Bids are resting orders to buy, sorted from the highest price down. Asks are resting orders to sell, sorted from the lowest price up. Each price level aggregates the size of all orders resting there. The best bid and best ask together define the top of the book; the midpoint between them is the mid price.
Hyperliquid's l2Book info type returns an aggregated snapshot of this structure for a given coin: a list of bid levels and a list of ask levels, each with a price, total size and number of orders. LIQUIDO's book route requests that snapshot and renders it as a depth chart and ladder.
A book snapshot is accurate only for the instant it was taken. Makers update quotes constantly, so treat depth as a typical condition to monitor over time, not a guaranteed quantity.
Walking the book
A market order consumes liquidity level by level. A buy fills against the best ask first, then the next ask, and so on until the full size is filled. The average price paid is the size-weighted average of every level touched, and it gets worse the more levels the order has to consume.
Slippage measured against the mid includes half the spread, which you pay even on the smallest order, plus the market impact of walking deeper into the book. For small orders the half-spread dominates; for large orders impact dominates.
A worked example
Consider a hypothetical ask side with a mid price of 100.00. The numbers are illustrative only and do not describe any real market.
| Ask price | Size at level | Cumulative size |
|---|---|---|
| 100.05 | 20 | 20 |
| 100.10 | 30 | 50 |
| 100.20 | 50 | 100 |
| 100.40 | 100 | 200 |
- Buying 20 fills entirely at 100.05: about 5 bps of slippage against the mid.
- Buying 100 fills 20 at 100.05, 30 at 100.10 and 50 at 100.20, for an average of 100.14: about 14 bps.
- Buying 200 also takes 100 at 100.40, for an average of 100.27: about 27 bps.
Doubling the order from 100 to 200 almost doubles the cost per unit. That non-linearity is why a strategy that is profitable at small size can become unprofitable as more capital follows it. Real books also refill after a large trade as makers post new quotes, so a patient trader who splits an order over time can often do better than this static calculation suggests, at the cost of exposure to price moves while waiting.
Depth and strategy capacity
A useful rule of thumb compares the size a trader typically trades with the depth available near the mid. If a vault routinely opens positions comparable to or larger than the depth within 1% of the mid, its fills are likely to carry meaningful impact, and that impact grows with every new dollar of capital.
- Exits matter more than entries. A trader can enter patiently but may have to exit quickly during a liquidation cascade, exactly when depth is thinnest.
- Depth is asymmetric. In a falling market bids often thin faster than asks, so long positions can be harder to unwind than they were to open.
- Open interest relative to depth hints at how crowded a market is and how violent forced unwinding could become.
Using the liquidity explorer
- Pick a market from the explorer's table, ideally one that a trader on your watchlist holds.
- Read the spread and the cumulative depth on each side of the book.
- Estimate slippage for the trader's typical position size using the walking-the-book method.
- Check the daily candles for long wicks, which often mark moments when depth evaporated.
- Revisit the same market at different times; a single snapshot can be unrepresentative.
Depth analysis will not tell you whether a trade is a good idea. It tells you what a trade of a given size is likely to cost, and that cost is one of the few things about trading that can be estimated with reasonable confidence in advance.