Library · Trading Mechanics
Order Book
An order book is the live list of all waiting buy and sell orders for one market, sorted by price, from which the exchange matches trades.
Why it matters
A price on a chart looks like a single number. Behind it stand two queues: people willing to buy at lower prices and people willing to sell at higher ones. The order book is those queues made visible.
It explains things a chart cannot: why a large order moves the price, why the price on screen is not always the price received, and where the bid-ask spread comes from.
What it looks like
| Price | Size | Depth |
|---|---|---|
| Asks: sellers waiting (lowest ask at the bottom) | ||
| 100.30 | 420 | |
| 100.20 | 260 | |
| 100.10 | 180 | |
| Spread: 0.10 between best bid (100.00) and best ask (100.10) | ||
| 100.00 | 210 | |
| 99.90 | 340 | |
| 99.80 | 510 | |
| Bids: buyers waiting (highest bid at the top) | ||
The book has two halves. Bids are buy orders waiting to be filled, with the highest bid nearest the middle. Asks (also called offers) are sell orders waiting to be filled, with the lowest ask nearest the middle. The gap between the two halves is the spread.
In plain words
Picture a noticeboard at a market. Buyers pin notes saying “I will pay 100.00 for up to 210 units”. Sellers pin notes saying “I will sell 180 units at 100.10”. Nothing trades while the notes merely hang there. A trade happens when someone walks up and accepts a note, or pins a new one that overlaps with the other side.
How to read it
| Term | Meaning | In the figure |
|---|---|---|
| Bid | A price a buyer is waiting to pay | 100.00, 99.90, 99.80 |
| Ask | A price a seller is waiting to accept | 100.10, 100.20, 100.30 |
| Best bid and best ask | The highest bid and the lowest ask, together called the top of the book | 100.00 and 100.10 |
| Size | The quantity waiting at one price level | 210 units at 100.00 |
| Depth | The total quantity waiting across levels | 1,060 on the bid side, 860 on the ask side |
Every row is a price level. It can contain one order or thousands of separate orders added together.
How orders change the book
Three actions change the book all day long:
- A limit order that does not trade immediately joins the book and waits. It adds liquidity.
- A market order trades against the waiting orders and removes them. It takes liquidity.
- A cancellation removes a waiting order before it trades.
- 180 at 100.10Takes everything at the best ask.
- 260 at 100.20Moves up to the next level.
- 60 at 100.30Takes part of the third level.
- Average: 100.18About 0.08% above the best ask.
Most order books match by price-time priority: the best price trades first, and among orders at the same price the earliest one trades first. Exact matching rules differ between exchanges.
Going deeper
Depth and liquidity
A book with large sizes close to the current price is called deep. It can absorb big orders with little price change. A book with small sizes and wide gaps between levels is thin, and the same order moves the price much further. This is the practical meaning of liquidity, and it is the source of slippage.
What the book does not show
The book lists only resting limit orders. It does not show market orders that are about to arrive, and stop orders are normally not displayed until they trigger. Some exchanges also allow hidden or “iceberg” orders, which show only part of their true size.
Displayed orders are not promises either. They can be cancelled in a fraction of a second. Placing large orders with no intention of letting them trade is known as spoofing, which is prohibited in regulated markets.
Not every market has one
Each exchange keeps its own book for each market, so the same asset has many books at once. Decentralized exchanges often have no book at all and use liquidity pools instead. Much of the size in a typical book comes from market makers, firms that continuously quote both sides.
One hypothetical order, three price levelsHypothetical illustration
Using the book in the first figure, a trader sends a market buy order for 500 units. The best ask is 100.10, but only 180 units are waiting there.
- 180 units fill at 100.10
- 260 units fill at 100.20
- 60 units fill at 100.30
The average fill price is (180 x 100.10 + 260 x 100.20 + 60 x 100.30) / 500 = 100.176. That is about 0.08% above the best ask the trader saw before sending the order.
An order for 100 units would have filled entirely at 100.10. The size of the order relative to the depth of the book made the difference.
What it does NOT mean
- A large bid does not mean price cannot go lower. A “wall” of orders can be cancelled, or simply filled, in moments.
- The book does not reveal what traders intend. It shows resting limit orders only, not stops, not market orders and not people who are still deciding.
- More bids than asks is not a forecast. The balance of displayed orders changes constantly and can be shaped by orders that never trade.
- The last traded price is not an offer. What can be bought or sold next is set by the best ask and the best bid.
Common mistakes
- Reading only the top line. The best bid and ask may hold very little size. A larger order reaches deeper levels.
- Treating displayed size as fixed. Orders appear and vanish faster than a person can read them.
- Assuming one book is the whole market. Other exchanges have their own books and slightly different prices.
Risks and limitations
- In thin books a modest order can move the price sharply.
- During fast markets liquidity providers often withdraw orders, so depth can vanish exactly when many traders need it.
- Hidden orders and off-exchange trading mean the visible book is always incomplete.
Key takeaway
The order book is the queue of waiting buyers and sellers at each price. It shows what can trade right now, and how far the price would move for a given size.
Sources and further reading
- Trading and Exchanges: Market Microstructure for Practitioners, Larry Harris (2003). Covers order-driven markets, order precedence rules and liquidity
- Market Centers: Buying and Selling Stock (opens in a new tab), U.S. Securities and Exchange Commission. Electronic networks and market makers that automatically match buy and sell orders at specified prices