Aperiodic
MarketsLive
Pricing
Get Started

Metrics library · L1 & L2 order book

L2 order book imbalance

Get the data

Imbalance, top 10 levels, BTC perps, last 24 hours

DELAYED 15 MIN…Updates by itself every 5 minutes

Loading…

Imbalance, top 10 levels, latest

Binance
—
OKX
—
Hyperliquid
—

Above zero means more size on the bid. Watch for venues leaning opposite ways at the same time.

How it's builtBTC, May 2025Perps rankedFieldsDownloadFAQ

Bid size against ask size across the top 5, 10, 20 and 25 levels of the book.

Multi-depth (5, 10, 20, 25 levels) order book imbalance, ratio, and averages.

Built from
L2 (Order Book)
Fields
24
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

    Sum size over the top N levels

    Each book snapshot has the top 25 price levels on each side. Each depth sums the size on the top N levels, for N of 5, 10, 20 and 25. Level prices are not used.

    7.29top 57.85
    7.41top 108.16
    7.61top 208.55
    7.69top 258.67
    bids, BTCasks, BTC
  2. Step 2

    One ratio per depth

    imbalance_ratio_5=(7.287 − 7.855) / 15.142=-0.0375
    imbalance_ratio_10=(7.409 − 8.157) / 15.566=-0.0481
    imbalance_ratio_20=(7.606 − 8.553) / 16.159=-0.0586
    imbalance_ratio_25=(7.689 − 8.670) / 16.359=-0.0600

    Each deeper band added more size to the asks than to the bids, so the ratio falls with depth.

    imbalance_ratio_5-0.0375
    imbalance_ratio_10-0.0481
    imbalance_ratio_20-0.0586
    imbalance_ratio_25-0.0600
  3. Step 3

    The last snapshot, or the bar's average

    imbalance_ratio_5_avg=mean over snapshots=-0.1263
    imbalance_ratio_10_avg=mean over snapshots=-0.1329
    imbalance_ratio_20_avg=mean over snapshots=-0.1429
    imbalance_ratio_25_avg=mean over snapshots=-0.1521

    On average through the bar, the book leaned further to the asks than at the close.

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

    The bar

    imbalance_5
    -0.568 BTC
    imbalance_ratio_5
    -0.0375
    imbalance_10
    -0.748 BTC
    imbalance_ratio_10
    -0.0481
    imbalance_20
    -0.947 BTC
    imbalance_ratio_20
    -0.0586
    imbalance_25
    -0.981 BTC
    imbalance_ratio_25
    -0.0600

Does deeper imbalance track BTC's price better?

On BTC, deeper imbalance tracked the bar less, not more: 0.37 at 5 levels, 0.33 at 25.

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

Same barNext bar
0.37
0.00
0.36
0.00
0.34
0.00
0.33
0.00
Top 5Top 10Top 20Top 25

Average book imbalance against the price move, by depth.

Correlation of each depth's average imbalance with the price move in the same bar and in the next. The top of book alone scored 0.38. For the next bar every depth was near zero, 0.002 at 5 levels and 0.003 at 25.

BTC's book on Binance has a quote on every tick, so 25 levels span $2.50 of price, and top-of-book and 25-level imbalance correlate 0.92. On this book the deeper levels add little. On thinner books 25 levels span more price. This page measures BTC only.

The most bid-heavy and ask-heavy books

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

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

Highest

#PerpMean imbalance, top 10, 24h
  1. 1ZEC Hyperliquid · USDC0.136
  2. 2DRAM Hyperliquid · USDC0.108
  3. 3INTC Binance · USDT0.094
  4. 4AAPL Binance · USDT0.086
  5. 5SPCX Hyperliquid · USDC0.078

Lowest

#PerpMean imbalance, top 10, 24h
  1. 1AIN Binance · USDT-0.232
  2. 2CL Hyperliquid · USDC-0.195
  3. 3BNB Binance · USDT-0.099
  4. 4BTC Hyperliquid · USDC-0.059
  5. 5SKHYNIX OKX · USDT-0.053

How to read it

imbalance_N is bid size minus ask size across the top N levels, and imbalance_ratio_N scales it from -1 to 1. N is 5, 10, 20 or 25.

The _avg fields are the mean over every book snapshot in the interval. The plain fields are the last snapshot.

Compare the top-of-book and deep imbalance. A thin bid at the touch with size behind it means the size sits just below the best bid, not that there are no buyers.

imbalance_5
Last top-5 bid quantity minus top-5 ask quantity
imbalance_10
Last top-10 bid quantity minus top-10 ask quantity
imbalance_20
Last top-20 bid quantity minus top-20 ask quantity
imbalance_25
Last top-25 bid quantity minus top-25 ask quantity
imbalance_ratio_5
Last normalized difference between top-5 bid and ask quantity
imbalance_ratio_10
Last normalized difference between top-10 bid and ask quantity
imbalance_ratio_20
Last normalized difference between top-20 bid and ask quantity
imbalance_ratio_25
Last normalized difference between top-25 bid and ask quantity
All 24 fieldsFewer fields
bid_ask_ratio_5
Last top-5 bid quantity divided by top-5 ask quantity
bid_ask_ratio_10
Last top-10 bid quantity divided by top-10 ask quantity
bid_ask_ratio_20
Last top-20 bid quantity divided by top-20 ask quantity
bid_ask_ratio_25
Last top-25 bid quantity divided by top-25 ask quantity
imbalance_5_avg
Average top-5 bid quantity minus top-5 ask quantity in the interval
imbalance_10_avg
Average top-10 bid quantity minus top-10 ask quantity in the interval
imbalance_20_avg
Average top-20 bid quantity minus top-20 ask quantity in the interval
imbalance_25_avg
Average top-25 bid quantity minus top-25 ask quantity in the interval
imbalance_ratio_5_avg
Average normalized difference between top-5 bid and ask quantity in the interval
imbalance_ratio_10_avg
Average normalized difference between top-10 bid and ask quantity in the interval
imbalance_ratio_20_avg
Average normalized difference between top-20 bid and ask quantity in the interval
imbalance_ratio_25_avg
Average normalized difference between top-25 bid and ask quantity in the interval
bid_ask_ratio_5_avg
Average top-5 bid quantity divided by top-5 ask quantity in the interval
bid_ask_ratio_10_avg
Average top-10 bid quantity divided by top-10 ask quantity in the interval
bid_ask_ratio_20_avg
Average top-20 bid quantity divided by top-20 ask quantity in the interval
bid_ask_ratio_25_avg
Average top-25 bid quantity divided by top-25 ask quantity in the interval
The research behind itHide the research

Order book imbalance is arguably the single most validated short-term predictive signal in the market microstructure literature. The intuition is immediate: if there's substantially more resting size on the bid than the ask, the next price move is more likely upward.

The Cont-Kukanov-Stoikov framework

Cont, Kukanov & Stoikov (2014) provided the definitive empirical analysis, showing that order book imbalance — defined as:

OBI=Qbid−QaskQbid+QaskOBI = \frac{Q_{bid} - Q_{ask}}{Q_{bid} + Q_{ask}}OBI=Qbid​+Qask​Qbid​−Qask​​

predicts the direction of the next mid-price change with statistically and economically significant accuracy across multiple equity markets. The signal is monotonic: stronger imbalance produces larger expected price moves, and the relationship is approximately linear.

Their insight was that the imbalance captures the queue dynamics of the limit order book: when one side has substantially more depth, the probability that the opposite side is depleted first (triggering a price change toward the deeper side) increases mechanically.

Instantaneous vs. time-averaged

A single snapshot of imbalance is noisy — market makers continuously refresh quotes, and a momentary asymmetry can be an artifact of staggered updates. Huang & Polak (2011) showed that time-averaged imbalance over longer windows provides a smoother, more predictive signal that captures the sustained directional tilt of the book rather than transient fluctuations.

We compute both:

  • Last imbalance — the snapshot at interval close
  • Average imbalance — the mean imbalance across all quote updates in the interval

The divergence between them — how much the closing snapshot differs from the average — itself carries information. A large divergence indicates recent quote instability, suggesting a potential regime change within the bar.

L1 vs. L2: depth matters

Top-of-book (L1) imbalance captures only the best bid and ask. But Cao, Chen & Griffin (2005) demonstrated that information about future price changes exists at deeper levels of the book. A thin top-of-book bid sitting in front of massive size at deeper levels is structurally different from a thin bid with nothing behind it.

We compute L2 imbalance at cumulative depth tiers: 5, 10, 20, and 25 price levels per side. This captures the full shape of supply-demand imbalance, not just the frontier.

The L1-L2 divergence is the most actionable signal. When L1 shows thin bids but L2 reveals deep bid-side support, the apparent weakness is a mirage — the top-of-book thinness is likely a market maker adjusting inventory, not a genuine absence of demand. Conversely, thick L1 bids with empty L2 behind them indicate a single concentrated quote — remove that one market maker and there's a price gap.


References:

  • Cont, R., Kukanov, A. & Stoikov, S. (2014). "The Price Impact of Order Book Events." Journal of Financial Econometrics, 12(1), 47–88.
  • Huang, R. & Polak, T. (2011). "Lobster: Limit Order Book Reconstruction System." Working Paper, Humboldt-Universität zu Berlin.
  • Cao, C., Chen, Z. & Griffin, J.M. (2005). "Informational Content of Option Volume Prior to Takeovers." Journal of Business, 78(3), 1073–1109.

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_imbalance --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 imbalanceBid against ask size at the touchL2 order book liquiditySize resting 5 to 25 levels deepL1 priceBest bid and ask, mid and microprice
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