← All research notes
Primer··4 min read

How to read an order book

Abstract

Bids, asks, spread and depth. Why a market order walks the book, and what the tape shows that the book does not.

Leverra Research

The chart tells you where price has been. The order book tells you what is sitting there right now, waiting to be traded. If you trade with leverage, learning to read it is one of the cheapest edges you can give yourself, because it tells you what your order will actually cost before you send it.

The two sides

An order book is two sorted lists of resting limit orders.

  • Bids are buy orders, sorted from the highest price down.
  • Asks (or offers) are sell orders, sorted from the lowest price up.

Each row is a price level. It shows the price, the total size resting at that price, and on Hyperliquid also how many separate orders make up that size.

The highest bid and the lowest ask are the top of book. The difference between them is the spread, and the midpoint is the mid price.

ASKS
  100.30   4.0
  100.20   2.5
  100.10   1.2   ← best ask
  ---------------- spread 0.10, mid 100.05
  100.00   3.0   ← best bid
   99.90   5.5
   99.80   8.0
BIDS

Market orders walk the book

A market buy does not fill at "the price". It fills against the asks, starting from the best one, and keeps going until your size is done.

In the book above, a market buy for 5 units would fill:

LevelFilledCost
100.101.2120.12
100.202.5250.50
100.301.3130.39
Total5.0501.01

Your average price is 100.202, about 0.15% above the mid. That difference is slippage, and it is paid on top of fees. On a thin market with leverage, slippage can be bigger than the fee.

This is why the Leverra terminal sends market orders as IOC limit orders with a 5% price cap: the order takes whatever liquidity is there up to that cap and cancels the rest, instead of filling at any price.

Limit orders wait

A limit order that does not cross the spread rests in the book and waits for someone else to trade against it. You control the price, but not whether you get filled. If the market moves away, you can miss the trade entirely.

On Hyperliquid, a resting limit order pays the maker fee and an order that takes liquidity pays the taker fee. Makers pay less. The exact fee depends on your volume tier, so check Hyperliquid's fee page rather than any number you read in a blog post.

Depth matters more than the top

The best bid and ask tell you the spread. The levels behind them tell you how much size the market can absorb.

Two markets can have the same one-tick spread and very different depth. On the first, 50 units sit at each of the top five levels; on the second, 1 unit sits at each. A 20-unit market order is nearly free on the first and expensive on the second.

A useful habit: before you size up, look at how far down the book your order would reach. If it would eat through several levels, split it or use a limit.

Reading the tape

Next to the book, the tape (trade feed) shows every fill as it happens: price, size, and which side was the aggressor. A green print usually means a buyer lifted the ask; a red one means a seller hit the bid.

The tape shows what traders are actually doing, not just what they are offering to do. Fast bursts of aggressive buys while the asks keep getting refilled tell a different story from the same buys clearing several levels.

Things the book will not tell you

  • Orders can disappear. Resting size can be cancelled in milliseconds. Large orders that vanish as price approaches are a known pattern, so do not treat any single level as a promise.
  • Hidden liquidity and other venues. The book on one venue is not the whole market. The same asset trades elsewhere at slightly different prices.
  • Your liquidation price. The book shows liquidity, not your risk. That comes from your margin and leverage.

Tick and lot sizes

Every market has a minimum price increment and a minimum size increment. On Hyperliquid, size precision is set per asset (szDecimals) and prices are limited in significant figures. Orders that do not respect them are rejected, which is why a good terminal rounds your size and price before signing.

In the Leverra terminal

The terminal streams the Hyperliquid L2 book and the trade tape over one shared WebSocket, next to the chart. Click a price in the book to use it as your limit price. The order ticket shows your estimated notional and margin before you sign.

Nothing in this note is financial advice. It is a map of how the machine works.

Sources

Research note, for information only. Not financial advice. Leverra is a permissionless on-chain prop firm for perps: capital stays with partner pools, and Leverra never holds it or guarantees payouts.