How a Crypto Order Book Actually Works
An order book is the live record of every buyer and seller waiting to trade. Reading one well is the foundation of execution skill.
The order book is the most important data structure in trading. Every limit order, every market order, every fill, every reported price, all of it is the order book in motion. Once you can read one, the mechanical layer of trading stops feeling random.
The structure
An order book has two sides:
- Bids, buyers willing to pay specific prices
- Asks (also called offers), sellers willing to accept specific prices
Each side is sorted by price. The highest bid sits at the top of the buy side; the lowest ask sits at the top of the sell side. The gap between the two is the spread.
Asks (sellers)
$67,201 ── 0.20 BTC
$67,200 ── 1.50 BTC ← best ask
───────────────────── ← spread
$67,198 ── 0.85 BTC ← best bid
$67,197 ── 0.40 BTC
Bids (buyers)
The "price" of BTC at any moment is the mid-price (halfway between best bid and best ask), or the last trade price (the price at which the most recent fill happened). They're usually within a few dollars of each other but not identical.
How orders interact
There are two order types you need first.
Limit orders sit on the book. You're saying: "I'll buy at $67,180 or better, but no higher." If no one matches you, your order waits.
Market orders consume the book. You're saying: "Buy me 0.5 BTC at whatever price gets it done now." A market buy walks up the ask side, filling against the best ask first, then the next, until you have your 0.5 BTC. The price you pay is the average of those levels, almost always worse than the best ask alone.
This is why market orders pay an implicit cost called slippage: your order moves through multiple price levels, and each level you eat through is at a worse price.
Makers and takers
The order book mechanically distinguishes two kinds of participants:
- Makers add liquidity by posting limit orders that don't immediately match. They're making the market.
- Takers remove liquidity by sending orders that immediately match against existing book entries. Market orders are always taker orders; aggressive limit orders (a buy order priced above the best ask) also count as taker.
Exchanges charge different fees for each role. Makers usually pay ~0.01-0.02% (sometimes negative, a rebate for providing liquidity); takers pay ~0.04-0.08%. The fee asymmetry exists because liquidity is valuable and exchanges want to incentivize the people supplying it.
This affects strategy. If you're patient, posting a limit order one tick better than the best bid earns you the maker rebate AND a better price than crossing the spread. If you need a fill now, you pay the taker fee. Knowing which you're doing on each trade is execution discipline.
Market depth
Beyond the best bid and ask, the order book has depth: liquidity sitting at every price level. A "deep" book has lots of size at each level, you can move size without much slippage. A "thin" book has gaps and small size at each level, same trade moves the price much further.
Most exchanges show this as a depth chart, a stacked area plot of cumulative size by price. The area sloping up from the right tells you how much you'd buy through to push the price up by X%; the area on the left tells you the same for selling. Depth charts make liquidity intuitive in a way the raw book doesn't.
What "the price" actually is
The displayed price on a chart isn't a single thing, it's whichever the chart is configured to show. The choices:
- Last trade price, the most recent fill. Updates whenever a trade happens. Can be stale during low activity.
- Mid-price, average of best bid and ask. Updates whenever either side moves. Doesn't represent a price you can actually trade at.
- Mark price, a smoothed/composite reference, often used by exchanges to compute unrealized PnL and avoid liquidating positions on momentary book glitches.
When you place a market order, you don't get any of these, you get the volume-weighted average of however many ask (or bid) levels you ate through.
A common mistake: thinking the spread is the only cost
For a small order on a liquid pair (BTC, ETH on a top-tier CEX), the spread is typically 1-2 basis points and slippage is essentially zero. You can almost ignore them. For a larger order, or a less liquid pair, or both, slippage dominates the spread.
A fast check before placing a market order: glance at the depth and estimate roughly how much of the visible book your order would consume. If you'd eat through 5+ levels to fill, either split the order into smaller pieces or use a limit order. The difference between a naive market order and a thoughtful one on a $50K trade in an illiquid alt can be the entire week's edge.
Mental model, the order book as a price ladder
Think of bids as steps going down and asks as steps going up. Each step has a width (price level) and a height (size). A market order walks down or up the ladder, "eating" each step it passes. Your average fill price is the weighted average of the step heights you consumed. A limit order is you putting a step on the ladder for someone else to walk over.
When you internalize this, "the price moved against me" stops being a mystical event. The price moved because someone took enough liquidity to consume the levels at your old price.
Why this matters for trading
Hex37's execution engine and order book mirror real CEX mechanics, ZSETs for the book, market orders walking the levels with simulated slippage, maker/taker distinction in your trade history. Practice reading the depth chart on the workspace before a real trade. The muscle memory of "look at the book, then size the order" is the kind of habit that compounds across thousands of trades.
Takeaway
The order book is the ground truth of the market. Bids and asks sorted by price; market orders eat through it; limit orders sit on it; makers and takers pay different fees. Reading depth before you click buy is the cheapest skill you can develop, and the one that separates traders who control their execution costs from traders who silently leak edge to slippage.