Aperiodic
MarketsLive
Pricing
Get Started

Metrics library · L1 & L2 order book

L2 order book liquidity

Get the data

Depth within 10 levels, both sides, BTC perps, last 24 hours

DELAYED 15 MIN…Updates by itself every 5 minutes

Loading…

Depth within 10 levels, both sides, latest

Binance
—
OKX
—
Hyperliquid
—

In dollars, so the venues compare directly.

How it's builtBTC, May 2025Perps rankedFieldsDownloadFAQ

The size resting behind the best quote, 5 to 25 levels deep.

Total bid/ask depth aggregated over 5, 10, 20, 25 order book levels — instantaneous and interval-averaged.

Built from
L2 (Order Book)
Fields
16
Intervals
1m to 1d; 15s and 30s on Prime
Plan
Prime
Venues
Binance, OKX, Hyperliquid
Live
Free 15 minutes behind; real time on paid plans

How it's built

One real 5-minute bar from the free preview, field by field.

The 5m bar from 14:00 to 14:05 UTC on 14 May 2025, Binance BTC-USDT perpetual, from the free preview.

  1. Step 1

    Cumulative size at four depths

    bid_agg_N is the BTC resting on the top N bid levels, and ask_agg_N the same for asks, so each one grows with N.

    bid_agg_25 in dollars=7.689 BTC × $103,805.7=$798.2K
    7.29top 57.85
    7.41top 108.16
    7.61top 208.55
    7.69top 258.67
    bids, BTCasks, BTC
  2. Step 2

    Size in each band of levels

    The difference between consecutive depths is the size in that band. On this book, over 90% of the size within 25 levels is in the top five.

    asks, levels 1 to 57.855 BTC
    asks, levels 6 to 100.302 BTC
    asks, levels 11 to 200.396 BTC
    asks, levels 21 to 250.117 BTC
    bids, levels 1 to 57.287 BTC
    bids, levels 6 to 100.122 BTC
    bids, levels 11 to 200.197 BTC
    bids, levels 21 to 250.083 BTC
  3. Step 3

    The last snapshot, or the bar's average

    ask_agg_25_avg=mean over snapshots=17.467 BTC
    ask_agg_25=last snapshot=8.670 BTC

    On average through the bar, the asks held about twice the size they held at the close. Each snapshot counts once.

    8.39top 512.32
    9.20top 1013.93
    10.72top 2016.26
    11.37top 2517.47
    bids, BTCasks, BTC
  4. Step 4

    The bar

    bid_agg_5
    7.287 BTC
    ask_agg_5
    7.855 BTC
    bid_agg_10
    7.409 BTC
    ask_agg_10
    8.157 BTC
    bid_agg_20
    7.606 BTC
    ask_agg_20
    8.553 BTC
    bid_agg_25
    7.689 BTC
    ask_agg_25
    8.670 BTC

How much of BTC's book sits at the best quote

74% of the BTC within 25 levels of Binance's book sat at the best bid and ask.

BTC-USDT perpetual on Binance, 5m bars, 1 to 31 May 2025, from the free preview.

BidsAsks
10.1
10.1
10.8
10.8
12.1
12.2
12.8
13.0
Top 5Top 10Top 20Top 25

Median BTC resting within each depth, averaged over the bar. BTC.

Median depth, averaged through each bar: 19.2 BTC at the touch, 20.3 BTC within 5 levels and 25.8 BTC within 25, about $2.7M. Bids and asks were close to symmetric.

With a quote on every tick, 25 levels on this book span 0.24 bps of price. A trade larger than the best quote fills against much thinner levels behind it.

The deepest and thinnest books

Among the 98 most traded perps on Binance, OKX and Hyperliquid, by 24-hour volume.

DELAYED 15 MINto 14:45 UTCUpdates by itself every 5 minutes

Highest

#PerpTop-of-book depth, 24h
  1. 1BTC OKX · USDT$1.5M
  2. 2BTC Hyperliquid · USDC$1.2M
  3. 3BTC Binance · USDT$1.0M
  4. 4ETH OKX · USDT$733.8K
  5. 5ETH Hyperliquid · USDC$688.9K

Lowest

#PerpTop-of-book depth, 24h
  1. 1CAP Binance · USDT$261
  2. 2ELSA Binance · USDT$359
  3. 3LITE Binance · USDT$386
  4. 4JCT Binance · USDT$468
  5. 5AKE Binance · USDT$692

How to read it

bid_agg_N and ask_agg_N are the base-asset size within the top N levels of each side: 5, 10, 20 or 25. Multiply by price for dollars.

The _avg fields are the mean over every book snapshot in the interval. The plain fields are the last one. Prefer the average, since one snapshot can catch quotes mid-refresh.

A level is a price step, so the same number of levels covers different distances on different contracts. Compare contracts in dollars and bps, not in levels.

ask_agg_5
Last total ask quantity across the top 5 levels
ask_agg_10
Last total ask quantity across the top 10 levels
ask_agg_20
Last total ask quantity across the top 20 levels
ask_agg_25
Last total ask quantity across the top 25 levels
bid_agg_5
Last total bid quantity across the top 5 levels
bid_agg_10
Last total bid quantity across the top 10 levels
bid_agg_20
Last total bid quantity across the top 20 levels
bid_agg_25
Last total bid quantity across the top 25 levels
All 16 fieldsFewer fields
ask_agg_5_avg
Average total ask quantity across the top 5 levels in the interval
ask_agg_10_avg
Average total ask quantity across the top 10 levels in the interval
ask_agg_20_avg
Average total ask quantity across the top 20 levels in the interval
ask_agg_25_avg
Average total ask quantity across the top 25 levels in the interval
bid_agg_5_avg
Average total bid quantity across the top 5 levels in the interval
bid_agg_10_avg
Average total bid quantity across the top 10 levels in the interval
bid_agg_20_avg
Average total bid quantity across the top 20 levels in the interval
bid_agg_25_avg
Average total bid quantity across the top 25 levels in the interval
The research behind itHide the research

Top-of-book metrics capture only the frontier of the limit order book. The deeper levels — where the bulk of resting liquidity sits — tell you about market resilience: the ability to absorb large orders without significant price displacement.

Order book shape as a market state variable

Biais, Hillion & Spatt (1995) conducted one of the earliest empirical analyses of the full limit order book (on the Paris Bourse), demonstrating that the shape of the book — not just the top level — contains predictive information about future price dynamics. They showed that the distribution of depth across price levels reveals the strategic behavior of limit order traders, who place orders deeper in the book during periods of uncertainty and closer to the market when they want to trade.

Gould et al. (2013) provided a comprehensive review of the limit order book literature, establishing that book depth at multiple levels is a key state variable for models of price formation. Markets with deep, evenly distributed books are resilient — they can absorb large trades with minimal price impact. Markets with concentration at the top and sparse deeper levels are fragile.

What we measure

We track order book state at four cumulative depth tiers: 5, 10, 20, and 25 price levels per side.

  • Aggregate bid/ask depth at each tier — total size available within the top N levels
  • Depth distribution — is liquidity concentrated at the top or spread evenly? Concentration at the top with empty deeper levels signals a single dominant market maker — remove them and there's a gap.
  • Cumulative depth imbalances — bid vs. ask size across all tracked levels. This extends the Cont, Kukanov & Stoikov (2014) order book imbalance signal into the deeper book.

Depth volatility: the resilience metric

How stable is the total depth over an interval? If depth is stable, market makers are committed — they're not pulling quotes defensively. High depth volatility means liquidity providers are repricing rapidly, which Foucault, Kadan & Kandel (2005) modeled as the optimal response to changing information asymmetry: when adverse selection risk rises, limit order traders either cancel or reprice their quotes.

Depth volatility spikes often precede or accompany large directional moves. The mechanism: market makers detect toxic flow (through their own monitoring of order flow patterns) and begin pulling quotes before the move becomes visible in prices. The L2 depth drain is the leading indicator; the price move is the lagging consequence.

The L1-L2 divergence signal

The most actionable signal from L2 data is its divergence from L1:

  • Thin L1 bid, deep L2 bid support → the top-of-book thinness is a market maker inventory adjustment, not genuine weakness. Natural buyers are resting orders deeper in the book.
  • Thick L1 bid, empty L2 behind it → a single concentrated quote creating the illusion of support. This is fragile — one cancellation and there's a gap.
  • L2 depth draining while L1 looks normal → the most dangerous configuration. The next large trade will hit a much thinner book than the top-of-book suggests. This is the micro-level expression of what Brunnermeier & Pedersen (2009) described as liquidity evaporation.

References:

  • Biais, B., Hillion, P. & Spatt, C. (1995). "An Empirical Analysis of the Limit Order Book and the Order Flow in the Paris Bourse." Journal of Finance, 50(5), 1655–1689.
  • Gould, M.D., Porter, M.A., Williams, S., McDonald, M., Fenn, D.J. & Howison, S.D. (2013). "Limit Order Books." Quantitative Finance, 13(11), 1709–1748.
  • Cont, R., Kukanov, A. & Stoikov, S. (2014). "The Price Impact of Order Book Events." Journal of Financial Econometrics, 12(1), 47–88.
  • Foucault, T., Kadan, O. & Kandel, E. (2005). "Limit Order Book as a Market for Liquidity." Review of Financial Studies, 18(4), 1171–1217.
  • Brunnermeier, M.K. & Pedersen, L.H. (2009). "Market Liquidity and Funding Liquidity." Review of Financial Studies, 22(6), 2201–2238.

Download the same month

No account needed. Prime adds every venue and perp, at 1-minute to daily bars.
# Install the Aperiodic CLI into ~/.local/bin
mkdir -p "$HOME/.local/bin"
curl -fsSL https://raw.githubusercontent.com/aperiodic-io/cli/main/install.sh | INSTALL_DIR="$HOME/.local/bin" bash
export PATH="$HOME/.local/bin:$PATH"

# Free preview — no API key required
aperiodic l2_liquidity --preview \
  --exchange binance-futures \
  --symbol perpetual-BTC-USDT:USDT \
  --interval 5m \
  --timestamp exchange \
  --start-date 2025-05-01 \
  --end-date 2025-05-31 \
  --output-dir ./data && echo "Saved to $PWD/data"

Questions

Related

L1 liquiditySpread and dollars at the touchL2 order book imbalanceBid against ask size, 5 to 25 levels deepSlippageWhat taker trades paid against the quote
Aperiodic

Built from hundreds of terabytes of raw data and distilled into point-in-time metrics you can pull as parquet files. Plus the raw trades, quotes and derivatives data behind them.

Use Cases
  • Improve your backtest
  • Find new alpha
  • Execute smarter
Indices
  • All indices
  • Aperiodic Cost Index
  • Aperiodic Depth Index
  • Aperiodic Impact Index
Metrics
  • Metrics library
  • Data Catalog
  • Live markets dashboard
  • Global Liquidity
  • Unusual activity
  • Order Flow
  • L1 & L2
  • Derivatives
  • RWA
  • Raw Data
Developers
  • API Docs
  • Live WebSocket Feed
  • MCP Server
  • Notebooks
  • For AI Agents
  • Atlas Security Master
  • Pre-flight
  • Changelog
  • Roadmap
  • llms.txt
Learn
  • Replays
  • Microstructure Guide
  • Architecture
  • Research Blog
  • FAQ
Compare
  • All vendors
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
Company
  • Pricing
  • Contact
  • Book a call
  • Terms of Service
  • Privacy Policy
  • Licensing
  • SLA

© Copyright 2026 Aperiodic. All Rights Reserved.

Aperiodic Limited · Registered in Ireland · Company No. 815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland

Shown: minute closes of 847 perpetuals, 20:30–22:30 UTC on 10 Oct 2025, IOTX in orange · built with ohlcv 1m