In simple terms
Match the venue, pair, units and timestamps first. Use the completed interval for volume and the snapshot for depth. To model a buy, work through the asks from the lowest price upward and weight each fill by its size.
On this page
How a spot order book works
A spot book lists visible limit orders waiting on a specific market. Bids offer to buy the base asset. Asks offer to sell it. In BTC/USD the sizes are in BTC and each price is in USD per BTC.
Best bid, best ask and midpoint
The highest bid and lowest ask are the closest displayed prices. Their difference is the spread. Their arithmetic mean is the midpoint. A marketable buy starts with available asks, while a marketable sell starts with available bids.
Spread = Ask − Bid
Midpoint = (Ask + Bid) ÷ 2
Read a grouped book
A Level 2 snapshot combines displayed quantities at each price level. The book excerpt below shows nearby prices from one Bitstamp BTC/USD snapshot. The recorded quantity is the aggregate at that price. A grouped level does not identify individual orders or their queue position.
Recorded BTC/USD order book
Snapshot time
- Midpoint
- 75,532.125 USD/BTC
- Spread
- 0.01 USD/BTC
| Price level | Displayed size |
|---|---|
| 75,532.12 USD/BTC | 0.00044484 BTC |
| 75,528.60 USD/BTC | 0.00200000 BTC |
| 75,528.21 USD/BTC | 0.00200000 BTC |
| 75,526.12 USD/BTC | 0.10000000 BTC |
| Price level | Displayed size |
|---|---|
| 75,532.13 USD/BTC | 4.01812554 BTC |
| 75,532.18 USD/BTC | 0.79728970 BTC |
| 75,533.07 USD/BTC | 0.00264785 BTC |
| 75,533.13 USD/BTC | 0.00200000 BTC |
What trading volume counts
Volume adds the base quantities of trades completed during a specified interval. Each execution contributes its size once. Quote turnover instead sums each trade price multiplied by the traded quantity. Check whether a volume field is in base units, quote currency or another unit.
Put timestamps on both measures
A book snapshot has a point in time. A volume bar has a start and an end. Our comparison uses the completed minute immediately before the minute containing the book snapshot. The two observations come from the same spot pair and venue.
Define the depth band
Choose a percentage distance from the midpoint. For a distance of 0.10% on each side, include bids at or above the midpoint multiplied by 0.999 and asks at or below the midpoint multiplied by 1.001. Keep the same reference and band when comparing snapshots.
Calculate visible depth on each side
Add the displayed base quantities inside the band separately for bids and asks. To express depth in USD, multiply each level’s price by its quantity before summing. Keep both sides separate because a buy consumes asks and a sell consumes bids. Check that the captured book reaches both band boundaries.
Compare depth with completed volume
The depth box uses orders visible at the snapshot. For the completed minute, the figure lists the volume in BTC and the turnover in USD. The depth and volume can be numerically similar or far apart. Their units may match while their time scopes and meanings differ.
Visible depth and completed volume
- Price band around the midpoint
- ±0.10%
- Band boundaries
- 75,456.592875 – 75,607.657125 USD/BTC
- Bid depth
- 25.09789858 BTC1,894,723.13 USD
- Ask depth
- 26.10986579 BTC1,972,718.00 USD
- Completed trading volume
- 0.01032172 BTC
- Completed minute turnover
- 779.63 USD
- Trade-volume interval
- –
Why volume and depth can move apart
Trades may execute while displayed liquidity is replenished. Orders can also be added or canceled between trades. An active interval can end with a thin book, while a quiet interval can end with many resting orders. To compare liquidity across times, collect repeated snapshots.
Walk the asks for a hypothetical buy
Start with the lowest ask. Take the smaller of its displayed quantity and the remaining order size. Continue to higher asks until the size is filled or the captured liquidity runs out. The example holds the recorded book fixed and excludes fees, latency and changes to the book.
Hypothetical buy using the recorded asks
| Price per BTC | Filled at this price | Quote amount |
|---|---|---|
| 75,532.13 USD/BTC | 4.01812554 BTC | 303,497.58 USD |
| 75,532.18 USD/BTC | 0.79728970 BTC | 60,221.03 USD |
| 75,533.07 USD/BTC | 0.00264785 BTC | 200.00 USD |
| 75,533.13 USD/BTC | 0.00200000 BTC | 151.07 USD |
| 75,534.76 USD/BTC | 0.17993691 BTC | 13,591.49 USD |
- Requested size
- 5 BTC
- Total quote amount
- 377,661.17 USD
- Volume-weighted average price
- 75,532.233518 USD/BTC
- Best ask benchmark
- 75,532.13 USD/BTC
- Slippage vs best ask
- +0.103518 USD/BTC · +0.0137 bp
Read the volume-weighted fill price
For each simulated fill multiply price by quantity. Add the costs and divide by the total filled quantity. The resulting average can be above the best ask when a buy reaches more than one price. Keep fees separate when calculating an all-in cost.
Volume-weighted average price = Σ(Price per BTC × Filled at this price) ÷ Σ(Filled at this price)
Choose the benchmark for slippage
A buy compared with the best ask isolates the modeled cost of walking up the ask side. A comparison with the midpoint also reflects the initial half-spread. Name the benchmark and show the sign, percentage or basis points. One basis point is 0.01 percentage points.
Slippage vs best ask (bp) = (Volume-weighted average price ÷ Best ask benchmark − 1) × 10 000
What happens when displayed size is insufficient
A book feed can stop at a fixed number of levels. When the visible rows cannot cover the order, record the filled amount and the remainder within the model. An actual order can execute differently as prices and quantities change. Order type and venue rules can also affect whether a remainder executes.
Compare the same market and units
BTC/USD and BTC/USDT have different quote assets and books. Spot volume and derivatives volume can also use different units. Match the venue, pair, market type, interval and depth band before comparing. A market-wide volume figure cannot describe the displayed book of a single pair.
How we verified the example
We saved the grouped Bitstamp BTC/USD book and the closed one-minute record. We used the snapshot timestamp, the candle’s start time and the venue’s data definitions. The downloadable file includes the relevant prices and quantities, the band boundaries and the hypothetical fills.
What to retain when comparing markets
Save the capture time, pair, spread, depth band and both sides of the book. Record the trade-volume interval and its units separately. For a modeled order retain the side, size, fill levels and benchmark. This makes two observations comparable on the same basis.
Read the shape of the depth curve
A cumulative depth curve sums visible orders from the best prices out toward the edge of the band. Each step adds the quantity at another price. Comparing ±0.05% with ±0.10% shows how much size is close to the midpoint and how much is farther away. For different assets use quote notional in the same currency and keep the sides separate.
Measure the displayed bid–ask imbalance
Subtract ask depth in USD from bid depth in USD and divide by their sum. Multiply by 100 to express the result as a percentage. Positive values mean more displayed bid notional in the band, and negative values mean more ask notional. If both sides have zero notional, the ratio is undefined. It describes the captured book at that moment.
Imbalance within ±0.10% = (Bid depth − Ask depth) ÷ (Bid depth + Ask depth) × 100
Check how stable the liquidity is
A large visible level can disappear when orders are canceled, or refill after trades. Two books with the same depth at the band edge can have different quantities near the best price and yield different average execution prices. To study how much liquidity stays available, collect repeated snapshots and check trades and order changes between them.
Compare ETH, XRP and SOL on the same basis
The comparison uses USD spot pairs on the same venue and the same distance from each pair’s midpoint. We captured BTC/USD alongside the three altcoins in the same round. The earlier BTC example has its own capture time. The USD depth values come from displayed orders and the minute turnover comes from completed trades. Use the spread in basis points and the depth at both bands to compare snapshots. Each pair represents one observation.
Same-venue comparison in USD
Bitstamp · Trade-volume interval –
BTC/USD
- Spread
- 0.00132 bp
- Imbalance within ±0.10%
- −20.15%
- Completed minute turnover
- 42,433.73 USD
| Price band around the midpoint | Bid depth | Ask depth |
|---|---|---|
| ±0.05% | 1,143,669.57 USD | 1,563,208.08 USD |
| ±0.10% | 1,381,521.20 USD | 2,078,935.44 USD |
Bid and ask depth combined
ETH/USD
- Spread
- 0.04484 bp
- Imbalance within ±0.10%
- −8.84%
- Completed minute turnover
- 851.08 USD
| Price band around the midpoint | Bid depth | Ask depth |
|---|---|---|
| ±0.05% | 418,942.77 USD | 686,266.68 USD |
| ±0.10% | 773,989.33 USD | 924,050.72 USD |
Bid and ask depth combined
XRP/USD
- Spread
- 0.08630 bp
- Imbalance within ±0.10%
- +32.48%
- Completed minute turnover
- 2,990.49 USD
| Price band around the midpoint | Bid depth | Ask depth |
|---|---|---|
| ±0.05% | 264,617.70 USD | 115,130.79 USD |
| ±0.10% | 465,243.20 USD | 237,126.29 USD |
Bid and ask depth combined
SOL/USD
- Spread
- 0.11220 bp
- Imbalance within ±0.10%
- +41.55%
- Completed minute turnover
- 1,961.26 USD
| Price band around the midpoint | Bid depth | Ask depth |
|---|---|---|
| ±0.05% | 351,452.37 USD | 134,900.47 USD |
| ±0.10% | 455,258.54 USD | 187,985.93 USD |
Bid and ask depth combined
In this sample, SOL has more bid notional than XRP within ±0.05%. At ±0.10% XRP has more. ETH has the largest combined depth of the three altcoins in the wider band and the smallest turnover in the completed minute.
Frequently asked questions
Is the best ask the price for an entire buy?
The best ask applies to its displayed quantity. A larger buy in the frozen-book model can use higher ask levels and receive a different average price.
Does high trading volume mean a deep book?
Volume records completed trades over a period. Depth depends on the bids and asks visible at the capture time. Check both on the same pair and venue.
Can orders disappear without trades?
Yes. A venue can report cancellations or changes to resting orders before they trade. New orders can also add displayed depth.
What is the difference between BTC volume and USD turnover?
BTC volume adds traded BTC. USD turnover adds the USD value of the executions. Use the label and the provider’s field definition.
Why use a percentage band around the midpoint?
It gives prices a common relative distance. Record the band, midpoint and whether the captured book covers both boundaries.
Is the example fill a real order?
The observed book and completed volume are real market data. The buy is a calculation using those saved asks and a fixed order size.
Can two books with the same total depth have different fill prices?
Yes. The same quantity can be distributed across different prices. Follow the levels in execution order and weight each modeled fill by its size.
Does an imbalance give a direction for the next trade?
The imbalance shows the relative size of visible orders within the chosen band at capture. The next execution depends on incoming orders, cancellations and available prices at that time.
Primary sources
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.