Aperiodic
MarketsLive
Pricing
Get Started

Metrics library · L1 & L2 order book

L1 liquidity

Get the data

Top-of-book depth, both sides, BTC perps, last 24 hours

DELAYED 15 MIN…Updates by itself every 5 minutes

Loading…

Top-of-book depth, both sides, latest

Binance
—
OKX
—
Hyperliquid
—

A dip on one venue only means less size quoted there.

How it's builtBTC, May 2025Perps rankedFieldsDownloadFAQ

The bid-ask spread and the dollars quoted at the best bid and ask.

Spread (absolute and bps), depth, dollar depth — instantaneous and interval-averaged.

Built from
L1 (Top of Book)
Fields
14
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

    Spread

    spread=$103,805.7 − $103,805.6=$0.10
    spread_bps=spread / mid × 10,000=0.0096 bps

    One tick, the contract's minimum price increment.

    best ask7.712 BTC$103,805.7
    best bid7.266 BTC$103,805.6
  2. Step 2

    Dollar depth at the best bid and ask

    dollar_depth_bid=7.266 BTC × $103,805.6=$754.3K
    dollar_depth_ask=7.712 BTC × $103,805.7=$800.5K
    total_dollar_depth=bid + ask=$1.55M
    spread_depth_ratio=spread / 14.978 BTC=0.0067

    On OKX, size is in contracts and is not multiplied by the contract size, so dollar depth there is contracts × price.

    ask: size × price$800.5K
    bid: size × price$754.3K
  3. Step 3

    Last quote against the bar average

    spread_avg=mean spread over updates=$0.128
    total_dollar_depth_avg=mean over updates=$1.92M

    The average spread is above one tick because the spread widened during some of the bar's 5,339 updates.

    $6.09M$1.47M
    13:0514:00
    total_dollar_depth, last quotetotal_dollar_depth_avg
  4. Step 4

    The bar

    spread
    $0.10
    spread_bps
    0.0096 bps
    total_depth
    14.978 BTC
    total_dollar_depth
    $1.55M
    spread_depth_ratio
    0.0067
    spread_avg
    $0.128
    spread_bps_avg
    0.012 bps
    total_dollar_depth_avg
    $1.92M

BTC's spread and depth through the day

BTC's spread on Binance was one tick in 99.5% of May's bars. Depth at the touch was 1.5× as large at 10:00 UTC as at 21:00.

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

Median top-of-book depth, both sides
$2.21M
$1.51M
000102030405060708091011121314151617181920212223

Hour of the day, UTC. Millions of USD.

One tick is $0.10, about 0.010 bps of the price. With the spread fixed at one tick, depth is what changes. Median top-of-book depth was $2.2M in the 10:00 UTC hour and $1.5M at 21:00.

A slippage model built on one daily average overstates depth in the thin hours and understates it in the thick ones.

The widest and tightest spreads

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

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

Highest

#PerpMedian spread, 24h
  1. 1SNXX Binance · USDT19.3 bps
  2. 2KORU Binance · USDT10.3 bps
  3. 3KORU OKX · USDT10.3 bps
  4. 4TRUMP OKX · USDT7.91 bps
  5. 5TRUMP Binance · USDT7.91 bps

Lowest

#PerpMedian spread, 24h
  1. 1BTC OKX · USDT0.012 bps
  2. 2BTC Binance · USDT0.012 bps
  3. 3BTC OKX · BTC0.012 bps
  4. 4BTC Binance · USDC0.012 bps
  5. 5XAU Binance · USDT0.024 bps

How to read it

spread is ask minus bid in quote currency, spread_bps the same in basis points of the mid. dollar_depth_bid and dollar_depth_ask are the dollars at the best quote on each side, total_dollar_depth their sum.

spread_depth_ratio divides the spread by the size at the touch. Higher means wider and thinner.

The _avg fields are the mean over every quote update in the interval. On the most liquid perps the last spread is almost always one tick, so use the average to see when it widened.

spread
Last best ask price minus best bid price in the interval
spread_bps
Last bid-ask spread in basis points of the midprice
spread_depth_ratio
Last bid-ask spread divided by total top-of-book quantity
total_depth
Last total top-of-book quantity across bid and ask
dollar_depth_bid
Last bid-side top-of-book notional
dollar_depth_ask
Last ask-side top-of-book notional
total_dollar_depth
Last total top-of-book notional across bid and ask
spread_avg
Average bid-ask spread in the interval
All 14 fieldsFewer fields
spread_bps_avg
Average bid-ask spread in basis points over the interval
spread_depth_ratio_avg
Average spread-to-depth ratio over the interval
total_depth_avg
Average total top-of-book quantity across bid and ask in the interval
dollar_depth_bid_avg
Average bid-side top-of-book notional in the interval
dollar_depth_ask_avg
Average ask-side top-of-book notional in the interval
total_dollar_depth_avg
Average total top-of-book notional across bid and ask in the interval
The research behind itHide the research

The bid-ask spread is universally understood as a transaction cost. Less appreciated: it's the market maker's real-time estimate of adverse selection risk, and its dynamics encode the informational state of the market.

The Glosten-Milgrom decomposition

Glosten & Milgrom (1985) proved that the bid-ask spread emerges endogenously in a market with asymmetric information. Even a competitive, zero-profit market maker must charge a spread because some fraction of incoming orders are from informed traders who know the asset's true value. The spread compensates for the expected losses to informed counterparties.

Huang & Stoll (1997) decomposed the spread empirically into three components:

  1. Adverse selection cost — compensation for trading against informed participants
  2. Inventory holding cost — compensation for carrying unwanted inventory risk
  3. Order processing cost — the operational cost of market making

Their estimation showed that adverse selection accounts for a substantial fraction (often 30–50%) of observed spreads in equity markets. In crypto markets, where informed participants can be algorithmic and fast, the adverse selection component is likely even larger.

What we measure — and what it reveals

  • Mean spread (bps) — the average transaction cost environment. But averages hide regime changes.
  • Spread standard deviation — this is the underappreciated metric. A bar with mean spread of 2 bps could have been consistently at 2 bps (stable market making, confident fair-value estimates) or oscillated between 0.5 and 8 bps (episodic uncertainty, potential information events). Bollerslev & Melvin (1994) showed that spread volatility itself predicts future return volatility.
  • Spread extremes — the minimum and maximum spread within the bar. Maximum spread captures the moment when market makers were most defensive — often coinciding with large informed trades or exogenous news.
  • Spread-to-depth ratio — spread normalized by available depth. A tight spread on thin depth is cheap but fragile; a tight spread on substantial depth is genuine liquidity.

The information in spread dynamics

Spread widening is a leading indicator. When market makers widen spreads, they're signaling increased uncertainty about fair value — either because they've observed toxic flow (Easley, López de Prado & O'Hara, 2012), or because volatility is elevated and their hedging lags reality.

Conversely, spread compression signals a market maker competition regime: multiple liquidity providers are confident in their fair-value estimates and competing for priority by narrowing quotes. This is the environment where mean-reversion strategies are most reliable and execution costs are lowest.

The L1 Liquidity dataset pairs spread metrics with depth at the best quote — because the two dimensions together define the true execution landscape. A tight spread with thin depth invites market impact; a tight spread with substantial depth is the holy grail of execution environments.


References:

  • Glosten, L.R. & Milgrom, P.R. (1985). "Bid, Ask and Transaction Prices in a Specialist Market with Heterogeneously Informed Traders." Journal of Financial Economics, 14(1), 71–100.
  • Huang, R.D. & Stoll, H.R. (1997). "The Components of the Bid-Ask Spread: A General Approach." Review of Financial Studies, 10(4), 995–1034.
  • Bollerslev, T. & Melvin, M. (1994). "Bid-Ask Spreads and Volatility in the Foreign Exchange Market." Journal of International Economics, 36(3-4), 355–372.
  • Easley, D., López de Prado, M.M. & O'Hara, M. (2012). "Flow Toxicity and Liquidity in a High-Frequency World." Review of Financial Studies, 25(5), 1457–1493.

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 l1_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

L2 order book liquiditySize resting 5 to 25 levels deepSlippageWhat taker trades paid against the quoteL1 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