An order book is the list of buy orders (bids) and sell orders (asks) that wait to trade on one market. The best bid is the highest buy price and the best ask the lowest; the gap is the spread. On Cryptathon a BTC tick is 0.5 USDT, so a 70,000.0 bid and 70,001.0 ask make a two-tick spread.
By the end, you can
1 of 3
What are the bid, the ask and the spread?
The order book is the list of orders that wait to trade on one market. Buy orders, called bids, are on one side. Sell orders, called asks, are on the other. Each line shows a price and how much waits at that price.
The highest bid is the best bid: the most that anyone will pay now. The lowest ask is the best ask: the least that anyone will sell for now. The gap between them is the spread, and the price halfway between them is the mid price.
Prices move in small steps called ticks. On Cryptathon one BTC tick is 0.5 USDT, so every BTC price in the book ends in .0 or .5.
Spread and mid price
The BTC book shows asks at 70,001.0, 70,001.5 and 70,002.0, and bids at 70,000.0, 69,999.5 and 69,999.0. Find the spread and the mid price.
- 1Find the spreadBest ask (the lowest ask) minus best bid (the highest bid).70,001.0 − 70,000.0 = 1.0 USDT
- 2Count the ticks in itThe spread is two ticks of 0.5 USDT.1.0 ÷ 0.5 = 2
- 3Find the mid priceStart at the best bid and add half the spread.70,000.0 + 1.0 ÷ 2 = 70,000.5 USDT
AnswerThe spread is 1.0 USDT, which is two ticks. The mid price is 70,000.5.
2 of 3
Which order trades first?
When a new order can trade, the exchange matches it with the orders that wait in the book. On Cryptathon the order is: best price first, then first come, first served at each price.
So a buy always takes the cheapest ask first. When two sellers wait at the same price, the seller who placed the order first sells first. The size of the order does not change its place in the queue.
Two sellers at one price
Two sell orders wait at the best ask, 70,001.0. Seller 1 placed 0.04 BTC first. Then seller 2 placed 0.06 BTC. A buyer sends a market buy for 0.05 BTC. Who sells?
- 1Check what waits at the best askThat is enough for the whole buy at one price.0.04 + 0.06 = 0.1 BTC
- 2Fill seller 1 firstSeller 1 came first, so all of their 0.04 BTC sells. 0.01 BTC of the buy is left.0.05 − 0.04 = 0.01 BTC
- 3Fill the rest from seller 2Seller 2 sells 0.01 BTC and still has 0.05 BTC in the book.0.06 − 0.01 = 0.05 BTC
AnswerSeller 1 sells 0.04 BTC and seller 2 sells 0.01 BTC, all at 70,001.0. Seller 2 keeps 0.05 BTC in the book, now first in the queue.
One more rule on Cryptathon: if your order would trade with your own order, both are cancelled.
3 of 3
How do you read depth?
Depth is how much waits to trade near the best prices. To read it, add up the sizes on each side of the book.
Depth tells you how far a big order must go. A big buy uses up the asks, so when few asks wait near the top, a big buy fills at higher prices. A big sell does the same to the bids.
Depth shows what waits now. It does not tell you where the price goes next, and orders can be cancelled at any time.
Which side is thicker?
The four best asks hold 0.1, 0.2, 0.5 and 0.8 BTC. The four best bids hold 0.3, 0.6, 0.9 and 1.2 BTC. Which side is thicker, and by how much?
- 1Add the asksSellers that wait at the four best ask prices.0.1 + 0.2 + 0.5 + 0.8 = 1.6 BTC
- 2Add the bidsBuyers that wait at the four best bid prices.0.3 + 0.6 + 0.9 + 1.2 = 3.0 BTC
- 3Compare themThe bid side holds nearly twice as much.3.0 ÷ 1.6 ≈ 1.9
- 4Put the bids in USDTAbout what the bids are worth at about 70,000 a BTC.3.0 × 70,000 = 210,000 USDT
AnswerThe bid side is thicker, with about 1.9 times the BTC of the ask side. A big sell finds more buyers near the top than a big buy finds sellers.
Common questions
What is the smallest spread a market can have?
One tick, because no price can sit between two ticks. On Cryptathon one BTC tick is 0.5 USDT, so the smallest BTC spread is 0.5 USDT, for example a best bid of 70,000.0 and a best ask of 70,000.5. At about 70,000 USDT a BTC, that is less than 0.001% of the price. A wider spread means buyers and sellers are further apart on price.
Is the last trade price the same as the mid price?
No. The last trade price is where the most recent trade happened, and a trade happens at a bid or at an ask. If a buyer takes the best ask at 70,001.0, the last price is 70,001.0. The mid price is halfway between the best bid and the best ask, for example 70,000.5. The two can differ by up to half the spread, or more in a fast move.
Can an order in the book be gone before you trade with it?
Yes. The trader who placed an order can cancel it at any time until it fills, and other traders can fill it before you. So a 2 BTC bid you see at 69,999.0 may be gone one second later. Read the book as what waits now. A big market order fills against what is there when it arrives, not against what you saw.
Check yourself
Three questions on the whole lesson.
What to remember
- What are the bid, the ask and the spread?The spread is the best ask minus the best bid, and the mid price is halfway between them.
- Which order trades first?The best price trades first, and at the same price, first come, first served.
- How do you read depth?Add up the sizes on each side to read depth; it shows what waits now, not what comes next.