Sub topic 1
Reading the Order Book
An order book is the exchange’s live list of buy and sell orders for a trading pair. It shows prices that traders are willing to accept, along with the quantity available at each price. The book changes whenever someone places, cancels, or fills an order.
Prerequisites
This chapter assumes that you know what a trading pair such as BTC/USDT represents, have used a centralized crypto exchange, and can read simple Python code.
The two sides of the book
The bid side contains buy orders. A bid says, “I want to buy this quantity at this price or better.” The highest bid is called the best bid.
The ask side, also called the offer side, contains sell orders. An ask says, “I want to sell this quantity at this price or better.” The lowest ask is called the best ask.
For example:
| Side | Price | Available quantity |
|---|---|---|
| Best ask | 100.50 USDT | 3.0 coins |
| Ask | 101.00 USDT | 5.0 coins |
| Best bid | 99.50 USDT | 2.0 coins |
| Bid | 99.00 USDT | 6.0 coins |
The best ask is the lowest selling price, and the best bid is the highest buying price. Orders farther from these prices are deeper in the book.
Spread and depth
The bid-ask spread is the difference between the best ask and the best bid:
spread = best ask - best bidIn the example, the spread is 100.50 − 99.50 = 1.00 USDT. A narrow spread usually means that buyers and sellers are close in price. A wide spread can indicate lower liquidity, uncertainty, or a fast-moving market.
Depth means the quantity available at prices across the book. Looking only at the best ask can be misleading. If you want to buy more than the quantity at that price, your order may consume the next ask, then the next one after that.
For a rough comparison across assets, you can express the spread as a percentage of the midpoint:
best_bid = 99.50
best_ask = 100.50
midpoint = (best_bid + best_ask) / 2
spread_percent = (best_ask - best_bid) / midpoint * 100
print(midpoint) # 100.0
print(spread_percent) # 1.0The midpoint is useful for analysis, but it is not necessarily a price at which you can trade. No order exists at the midpoint in this example.
A practical reading method
Before submitting an order:
- Confirm the trading pair and the quote currency.
- Find the best bid and best ask.
- Calculate the spread.
- Check the quantity at the prices relevant to your order size.
- Look for gaps, where the next available price is far away.
- Compare the visible depth with your intended quantity.
A book with only a small amount available near the best prices is thin. A large order in a thin book can move through several price levels. The order type determines how that interaction happens, which is the subject of the next chapters.
Exercise
A book shows a best bid of 2,000 USDT for 0.8 ETH and a best ask of 2,010 USDT for 0.3 ETH. What are the spread and the main warning for someone trying to buy 1 ETH?
Show answer
The spread is 10 USDT. Only 0.3 ETH is available at the best ask, so buying 1 ETH may require taking higher ask levels and paying more than 2,010 USDT on average.