Order Books and Average Fill Price: Why Does a Big Buy Raise Your Average Price?
It may seem like you can buy as much as you want at the "Current price" shown on an exchange, but in reality, the larger the amount, the worse your average fill price gets compared to the current price. In this article, we’ll look at how to read an order book and work through examples of why the average price changes when you trade large amounts.
How to read an order book
An order book is a table that groups orders still waiting to be filled by price.
- Asks: Orders placed by people who want to sell. The lowest ask is the cheapest price you can buy at right now.
- Bids: Orders placed by people who want to buy. The highest bid is the best price you can sell at right now.
- Spread: The gap between the lowest ask and the highest bid. The more active the market, the narrower the spread.
- Size: The amount of orders stacked at each price.
"Current price" is the last traded price, so there’s no guarantee you can buy at that price right now.
A market buy fills from the top down
A market order, which buys right away without setting a price, buys from the cheapest ask upward. If the first level doesn’t have enough size, it moves on to the next level and the one after that, filling at higher and higher prices. That’s why the larger the amount, the higher the average fill price. This gap between the price you expected and the actual fill price is called slippage.
Example calculation
Let’s say the asks for Tether (USDT/KRW) look like the table below. The numbers are just examples to help explain.
| Ask | Size (USDT) |
|---|---|
| 1,400 KRW | 1,000 |
| 1,401 KRW | 2,000 |
| 1,402 KRW | 3,000 |
| 1,405 KRW | 5,000 |
5,000 USDT as a market buy
- 1,400 KRW × 1,000 = 1,400,000 KRW
- 1,401 KRW × 2,000 = 2,802,000 KRW
- 1,402 KRW × 2,000 = 2,804,000 KRW (you buy only 2,000 of the 3,000 at the 1,402 KRW level)
Total 7,006,000 KRW ÷ 5,000 = an average of 1,401.2 KRW. That’s 1.2 KRW, or about 0.09%, more than the cheapest ask of 1,400 KRW.
9,000 USDT as a market buy
- 1,400 KRW × 1,000 = 1,400,000 KRW
- 1,401 KRW × 2,000 = 2,802,000 KRW
- 1,402 KRW × 3,000 = 4,206,000 KRW
- 1,405 KRW × 3,000 = 4,215,000 KRW
Total 12,623,000 KRW ÷ 9,000 = an average of about 1,402.56 KRW. That’s about 0.18% more than 1,400 KRW. Just raising the amount made the average price worse. In a thin order book, where little size sits at each price, this gap gets much bigger.
Selling works the same way
A market sell fills from the highest bid downward, so the larger the amount, the lower your average sell price. If the bids are 1,500 at 1,399 KRW and 2,000 at 1,398 KRW, selling 3,000 USDT at market works out like this.
- 1,399 KRW × 1,500 = 2,098,500 KRW
- 1,398 KRW × 1,500 = 2,097,000 KRW
Total 4,195,500 KRW ÷ 3,000 = an average of 1,398.5 KRW, which is 0.5 KRW less than the highest bid of 1,399 KRW.
How to reduce slippage
- Check the order book size before ordering: Work out in advance how many levels your amount will eat through, and you’ll know your expected average price.
- Consider a limit order: If you set the price you want, you won’t be filled at anything worse. The catch is that if the price never gets there, your order may not fill or may fill only partly.
- Split your order: Placing several smaller orders instead of one big one gives the order book time to refill. The price may move in the meantime, though.
- Factor in fees separately: The averages above don’t include trading fees. Fee rates differ by exchange and can change.
The same goes for comparing the kimchi premium or prices. On-screen prices reflect small amounts, so keep in mind that the average fill price can differ when you actually trade a large sum.
This article is for informational purposes only and is not investment advice.