Historical Order Book Data: Level-2 Depth and Market Depth History for Crypto
The order book is the part of a market that no candle feed keeps. Every day file in the archive carries the full Level-2 evolution of one instrument — one snapshot, then every incremental update with the venue timestamp and our co-located receive timestamp in integer nanoseconds — for 318,832 instruments across 32 venues, February 2021 – September 2026. Replay it and the book is there at any instant: depth at every level, spread, queue position, imbalance.
Historical Order Book Data — L2 Crypto Depth
Level-2 history is recorded as the venue sends it: a type-0 snapshot resets the book, then type-1 updates change one price level at a time (quantity 0 removes the level). The free Python reader replays a file into a fixed-grid order-book dataset in one command (book FILE --every 1s --depth 20 --out book_1s.parquet), and the browser viewer replays any sample or purchased day tick by tick.
Top-of-book is a separate best-bid/ask stream where the venue publishes one (type 6) and is derived by replay where it does not: BitMEX, Coinbase, Kraken spot, Kalshi, Polymarket record depth only. That is why the flat bbo.csv.gz export exists only for venues with a BBO stream — on the depth-only venues the reader rebuilds the top of book locally from the L2 updates, which is exact, not sampled.
What the depth history answers that trades alone cannot: how much size sat at each level before a move, how long orders queued before they filled or cancelled, how the spread behaved through a liquidation cascade, and whether a market impact model is calibrated on the book that actually existed. The order-book dataset guide turns the replay into features and labels.
How big is a day of order book history?
| Example | Compressed | Events |
|---|---|---|
| Binance BTCUSDT perpetual, one day | 1–2 GB | tens of millions |
| BitMEX XRPUSDT perpetual, one day | 59 MB | 1.87 M (1.83 M book updates) |
| Kalshi event contract, one day | ≈ 94 KB on average | thousands |
| Polymarket event contract, one day | ≈ 353 KB on average | tens of thousands |
Examples from the format reference; the order-book updates are the bulk of every file.
Venues without a separate best-bid/ask stream
These venues publish Level-2 depth but no top-of-book message — the free reader derives the best bid and ask by replaying the book, exactly, not sampled. No flat BBO export exists for them.
Spread and depth per venue — last 24 hours
A live, display-only snapshot of the BTC/ETH probe basket: how tight and how deep each venue's book runs right now, from the same minute statistics the archive derives. It changes hourly and is not part of the structured data.
| Venue | Median spread | Top-1 depth | Top-20 depth | Probed instruments |
|---|---|---|---|---|
| Hyperliquid | 0.44 bps | $47.4K | $1.7M | 5 |
| BingX | 0.21 bps | $23.3K | $1.1M | 10 |
| Bitmart | 0.34 bps | $58.0K | $785.7K | 10 |
| Binance USDT-M | 0.14 bps | $94.9K | $710.3K | 5 |
| HashKey MENA | 0.20 bps | $24.7K | $628.8K | 4 |
| Kraken Futures | 1.85 bps | $3.8K | $600.1K | 5 |
| Okx | 0.78 bps | $20.8K | $481.9K | 10 |
| BitMEX | 2505.28 bps | $51.3K | $449.3K | 4 |
| Orderly | 1.74 bps | $15.4K | $430.7K | 5 |
| HashKey Exchange | 1.51 bps | $52.8K | $417.8K | 4 |
| Mexc | 1.10 bps | $20.9K | $395.5K | 5 |
| Bybit | 0.78 bps | $13.3K | $367.7K | 10 |
Live 24 h snapshot of the BTC/ETH probe basket per venue — median bid-ask spread and mid-side total notional over the top 1 and top 20 levels ((bid + ask) / 2 × levels), from the minute statistics of the archive. Changes hourly; the full dashboard is the liquidity analyzer.
Venues with order book history, ranked by recorded turnover
Every venue below carries the full Level-2 book next to its trades — 31 venues with activity in the 30 days to 2026-09-16.
| # | Venue | Turnover · 30d (USD) | Share | Trades · 30d | Avg trade | vs prior 30d |
|---|---|---|---|---|---|---|
| 1 | Binance USDT-M | $1.8T | 31.3 % | 5.2B | $339 | +47.8 % |
| 2 | Okx | $813.8B | 14.4 % | 865.1M | $941 | +52.0 % |
| 3 | Bybit | $498.7B | 8.8 % | 1.6B | $314 | +71.1 % |
| 4 | Gate.io Future | $368.9B | 6.5 % | 422.0M | $874 | +67.5 % |
| 5 | Binance Spot | $305.7B | 5.4 % | 1.1B | $276 | +85.8 % |
| 6 | Bitget | $290.3B | 5.1 % | 530.6M | $547 | +59.0 % |
| 7 | Coinbase International | $277.3B | 4.9 % | 161.0M | $1,722 | +38.9 % |
| 8 | Hyperliquid | $260.9B | 4.6 % | 154.5M | $1,689 | +65.9 % |
| 9 | Whitebit | $252.3B | 4.5 % | 323.5M | $780 | +35.6 % |
| 10 | BingX | $176.3B | 3.1 % | 6.7B | $26 | +19.9 % |
USD turnover and trade counts per venue over the 30 days to 2026-09-16, summed from every trade print in our tick archive (31 venues with activity; share = of $5.7T total). Not venue-reported volume.
Message types behind order book data
| Type | Message | What it carries |
|---|---|---|
0 | Order-book snapshot | Full Level-2 state; a new snapshot resets the book |
1 | Order-book update | Incremental L2 change per price level (quantity 0 removes the level) |
6 | Top-of-book (BBO) | Best bid/ask stream where the venue publishes one (not on BitMEX, Coinbase, Kraken spot, Kalshi, Polymarket) |
How to download order book data
- Find the instrument in the Data Shop (search by pair or venue) or browse by exchange, by asset or by trading pair.
- Try a free day first: the full-day samples on the downloads page are the exact shop files, no account needed — parse one before you buy a month.
- Pick the UTC days in the instrument's calendar and check out — card with invoice, or Premium and pack credits (1 credit = €1 = one instrument-day). Many instruments at once: "Select to buy" in the instrument scanner adds a shared date window.
- Replay:
book FILE --every 1s --depth 20with the free reader for a fixed-grid Parquet of the top-20 levels, or open the day in the browser viewer to scrub the ladder and tape visually. Trades and (where published) BBO also export flat as?format=trades.csv.gz/?format=bbo.csv.gz. - Download from the order page (single files), your account (batch ZIP of everything you own) or scripted via the MCP server and the Agent Skill. Days in deep archive restore in about 12 hours.
Research, backtesting and model training
Purchased data is for your own use — backtesting, research, analytics and training your own models, in-house or in your own products; the trained models and derived data you build from it are yours. The raw files and tick streams themselves may not be redistributed, resold or published. The full terms are on the data license page.
Order book data — FAQ
Is the order book history complete or sampled snapshots?
Complete. A day file holds one initial Level-2 snapshot followed by every incremental update the venue published, each with its exchange timestamp and our receive timestamp in nanoseconds. Nothing is sampled on the way to disk, and an event-id chain makes any gap visible — the free reader's audit command reports chain breaks and crossed book states.
How deep is the Level-2 data — how many price levels?
As deep as the venue's public feed: every level the exchange publishes in its depth stream, not a fixed top-N cut. Depth per venue and instrument varies with the feed (a top-20 grid is the common research cut, and the reader takes --depth as a parameter). Where a venue publishes several depth channels, the recorded one is the finest public increment — check the current docs of the venue for what its feed exposes.
Which venues have no separate best-bid/ask stream?
BitMEX, Coinbase, Kraken spot, Kalshi, Polymarket record depth only — there is no type-6 BBO message in their files and no flat BBO export. Top-of-book on these venues comes from replaying the order-book updates, which the free reader does locally and exactly. Every other venue carries the BBO stream in the same file next to the depth updates.
Can I get Binance order book history for a specific day?
Yes — every instrument-day is sold individually, so one day of BTCUSDT on Binance USDⓈ-M or Binance spot is one file for €1, with the full depth stream, trades, BBO, funding and liquidations inside. Pick the day in the shop calendar; older days in deep archive restore in about 12 hours.
How do I turn the order book history into a dataset?
Replay the file on a time grid: the reader's book command emits the top-N levels every N milliseconds or seconds as Parquet, and from that grid come the usual features — depth imbalance, microprice, spread, queue sizes, book-pressure labels. The dataset guide walks through the pipeline with leakage-safe labels; the training-data page covers sizes.
How many exchanges have Level-2 order book history in the archive?
31 venues recorded activity in the 30 days to 2026-09-16, every one of them with the full Level-2 book next to $5.7T of traded turnover. Coinbase, Kraken Spot, Polymarket, Kalshi, BitMEX publish depth without a separate best-bid/ask stream, so top of book is derived by replay there; every other venue carries the BBO stream in the same file.