Order Books
Common questions about order book depth, snapshots and reconstruction
Using order book data
What L2 order book data can be used for?
L2 data (market-by-price) includes bid and ask orders aggregated by price level and can be used to analyze among other things:
order book imbalance
average execution cost
average liquidity away from midpoint
average spread
hidden interest (i.e., iceberg orders)
We provide L2 data in CSV format as incremental order book L2 updates, tick-level order book snapshots (top 25 and top 5 levels) and in exchange-native format via API and client libraries that can perform full order book reconstruction client-side.
What L3 order book data can be used for?
L3 data (market-by-order) includes every order book order addition, update, cancellation and match and can be used to analyze among other things:
order resting time
order fill probability
order queue dynamics
Historical L3 data is currently available via API for Bitfinex, Bitfinex Derivatives, Coinbase Exchange, Bitstamp and Blockchain.com, and for the delisted Serum, Mango Markets and Star Atlas DEXs - remaining supported exchanges provide L2 data only.
What is the maximum order book depth available for each supported exchange?
We always collect full depth order book data as long as exchange's WebSocket API supports it. Table below shows current state of affairs for each supported exchange.
top 1000 levels initial order book snapshot, full depth incremental order book updates
real-time, dynamically adjusted
top 1000 levels initial order book snapshot, full depth incremental order book updates
real-time, dynamically adjusted
top 1000 levels initial order book snapshot, full depth incremental order book updates
100ms
top 1000 levels initial order book snapshot, full depth incremental order book updates
100ms
top 20 levels order book snapshots since 2025-12-17; top 100 levels before
100ms
top 400 levels initial order book snapshot and updates
100ms since 2026-05-21; tick-by-tick before
top 400 levels initial order book snapshot and updates
100ms since 2026-05-21; tick-by-tick before
top 400 levels initial order book snapshot and updates
100ms since 2026-05-21; tick-by-tick before
top 400 levels initial order book snapshot and updates
100ms since 2026-05-21; tick-by-tick before
full depth snapshots and updates since 2026-08-19; top 1000 levels from 2025-09-04, top 500 from 2023-04-05, top 200 from 2019-12-23, top 25 before
200ms since 2025-09-04; 100ms from 2019-12-23; 20ms before
full depth snapshots and updates since 2026-10-07; top 200 levels from 2025-02-24, top 50 from 2023-04-05; order book snapshots and deltas before
200ms since 2025-02-24; 20ms from 2023-04-05; 100ms before
top 250 levels initial order book snapshot and updates (top 100 until March 2021)
real-time
top 1000 levels generated REST snapshot plus full depth incremental updates
real-time, dynamically adjusted
top 1000 levels generated REST snapshot plus full depth incremental updates
real-time, dynamically adjusted
full depth order book snapshots and updates from 2026-04-28; top 15 snapshots before
50ms
400 levels (100 for delivery) snapshots and updates from 2026-10-21; top 20 snapshots before
100ms
400 levels snapshots and updates since 2025-08-01; incremental updates with REST snapshots from 2023-04-29; top 30 snapshots and updates before
100ms since 2023-04-29; real-time before
top 50 levels REST snapshot plus incremental updates since 2026-06-29; WebSocket-requested snapshot plus incremental updates before
50ms since 2026-06-29; 200ms before
top 20 levels snapshots (l2Book); top 5 levels snapshots (fastBook) since 2026-06-17
around 5s (l2Book), around 500ms (fastBook)
top 1000 levels initial order book snapshot, full depth incremental order book updates
100ms
Snapshots and reconstruction
How are order book data snapshots provided?
Historical market data available via HTTP API provides order book snapshots at the beginning of each day (00:00 UTC) and after each WebSocket reconnect - see details.
We also provide order book snapshots computed from this data: at any interval from tick-by-tick to minutes or hours via client libs, computed client-side from raw data provided via HTTP API, and as tick-level book_snapshot_25 and book_snapshot_5 downloadable CSV files.
Do you collect order books as snapshots or in streaming mode?
Order books are collected in streaming mode - snapshot at the beginning of each day and then incremental updates, except on exchanges that publish only snapshots, such as Upbit and Hyperliquid. See details.
We also provide order book snapshots computed from this data: at any interval from tick-by-tick to minutes or hours via client libs, computed client-side from raw data provided via HTTP API, and as tick-level book_snapshot_25 and book_snapshot_5 downloadable CSV files.
How is the incremental_book_L2 CSV dataset built from real-time data?
Cryptocurrency exchanges' real-time APIs vary a lot, but for L2 order book data they all tend to follow a similar flow: first, when a WS connection is established and subscription is confirmed, exchanges send an initial order book snapshot (all existing price levels or top x levels depending on exchange; for exchanges that don't send one, such as Binance, we fetch it from their REST API), and then start streaming order book update messages (often called deltas). Those updates, when applied to the initial snapshot, result in an up-to-date order book state at a given time.
Let's take FTX as an example and start with its snapshot order book message (which is frequently called 'partial' in exchange API docs as well).
Remaining bids and asks levels were removed from this sample message for the sake of clarity.
Such snapshot message maps to the following rows in CSV file:
ftx
ETH/USD
1601510401216632
1601510401316432
true
ask
359.8
8.101
ftx
ETH/USD
1601510401216632
1601510401316432
true
bid
359.72
121.259
... and here's a sample FTX orderbook update message.
Let's see how it maps to CSV format.
ftx
ETH/USD
1601510427184054
1601510427204046
false
ask
360.24
4.962
ftx
ETH/USD
1601510427184054
1601510427204046
false
ask
361.02
0
See this answer if you have doubts how to reconstruct order book state based on data provided in incremental_book_L2 dataset.
How can I reconstruct full order book state from incremental_book_L2 CSV dataset?
In order to reconstruct full order book state correctly from incremental_book_L2 data:
Rows before the first snapshot in the file should be skipped — they are buffered updates received before the exchange sent the initial snapshot after a connection restart.
For each row in the CSV file (iterate in the same order as provided in file):
only if the local timestamp of the current row is larger than the previous row local timestamp (
local_timestampcolumn value) does it mean you can read your local order book state as consistent. Why? CSV format is flat where each row represents a single price level update, but most exchanges' real-time feeds publish multiple order book level updates via a single WebSocket message that need to be processed together before reading locally maintained order book state. We use local timestamp value here to detect all price level updates belonging to a single 'update' message.if current row is a part of the snapshot (
is_snapshotcolumn value set totrue) and previous one was not, or previous one was a part of a different snapshot (differentlocal_timestamp), reset your local order book state object that tracks price levels for each order book side as it means that there was a connection restart and exchange provided full order book snapshot, it was a start of a new day (a new snapshot arrives shortly after 00:00 UTC) or the exchange publishes only snapshots (such as Upbit, Bithumb and Hyperliquid) and each one replaces the previous oneif current row amount is set to zero (
amountcolumn value set to0) remove such price level (row'spricecolumn) from your local order book state as such price level does not exist anymoreif current row amount is not set to zero update your local order book state price level with new value or add new price level if not exist yet in your local order book state - maintain separately bids and asks order book sides (
sidecolumn value)
Alternatively, we also provide top 25 and top 5 levels order book snapshots as CSV datasets ready to download.
Can order book snapshots be empty?
Yes. For very illiquid instruments (e.g., deep out-of-the-money options or niche currency pairs) order book snapshots can be present but empty — containing no bid or ask levels. This is not a data gap; it reflects the actual state of the order book on the exchange at that time. Subsequent snapshots after reconnects may also be empty if the instrument remains illiquid.
Can reconstructed order books have bid-ask overlap?
Although it should never happen in theory, in practice due to various crypto exchanges bugs and peculiarities it can happen (very occasionally), see some posts from users reporting those issues:
We do track sequence numbers of WebSocket L2 order book messages when collecting the data and restart connection when sequence gap is detected for exchanges that do provide those numbers. We observe that even in scenario when sequence numbers are in check, bid/ask overlap can occur.
When such scenario occurs, exchanges tend to 'forget' to publish delete messages for the opposite side of the book when publishing new level for given side - we validated that hypothesis by comparing reconstructed order book snapshots that had crossed order book (bid/ask overlap) for which we removed order book levels for the opposite side manually (as exchange didn't publish that 'delete'), with quote/ticker feeds if best bid/ask matches (for exchanges that provide those) - see sample code that implements that manual level removal logic.
If you encounter a crossed book during reconstruction, the recommended approach is to remove overlapping levels from the opposite side. Additionally, crossed states are always resolved by the next snapshot reset (either at 00:00 UTC daily resubscription or after a WebSocket reconnect).
Last updated
Was this helpful?