Aperiodic
指标
市场实时
文档价格
获取数据

指标库 · L1与L2订单簿

L1流动性

示例CSV

双边盘口深度, BTC 永续合约,近24小时

延迟15分钟…每5分钟自动更新

加载中…

双边盘口深度,最新值

Binance
—
OKX
—
Hyperliquid
—

若仅一家交易所出现下滑,只说明该交易所的报价挂单量减少。

跨越买卖价差的成本是多少?

成交最活跃的永续合约BTC,穿越买卖价差的成本为0.016 bps;排名第200的CBRS则为1.15 bps,是前者的70倍。

  • #1BTC0.016 bps
  • #2ETH0.058 bps
  • #3SOXL2.93 bps
  • #5SOL1.42 bps
  • #10SNDK1.20 bps
  • #25SPCX0.76 bps
  • #50ADA6.91 bps
  • #100MRVL0.78 bps
  • #200CBRS1.15 bps

l1_liquidity.spread_bps最活跃合约 · 中位数 · 24小时

最优价位挂有多少量?

在最优买价和卖价上,BTC在Binance的深度为USD 45.65万;排名第200的合约CBRS为USD 912.8。

  • #1BTC$456.5K
  • #2ETH$258.3K
  • #3SOXL$101.4K
  • #5SOL$198.0K
  • #10SNDK$12.8K
  • #25SPCX$87.8K
  • #50ADA$125.5K
  • #100MRVL$1.4K
  • #200CBRS$913

l1_liquidity.total_dollar_depth最活跃合约 · 均值 · 24小时

构建方法BTC, May 2025永续合约排名字段下载常见问题

买卖价差,以及最优买价和卖价上的挂单美元金额。

买卖价差(绝对值及基点)、深度、美元深度,均提供瞬时值及区间均值。

Built from
L1(最优报价)
字段
14
K线周期
1m to 1d; 15s and 30s on Prime
套餐
Prime
交易所
Binance, OKX, Hyperliquid
实时
免费版延迟15分钟;付费套餐提供实时数据

构建方法

取自免费预览的一根真实5分钟K线,逐字段展示。

2025年5月14日14:00至14:05 UTC的5分钟K线,Binance BTC-USDT永续合约,数据来自免费预览。

  1. 步骤 1

    买卖价差

    买卖价差=$103,805.7 − $103,805.6=$0.10
    spread_bps=买卖价差 / 中间价 × 10,000=0.0096 bps

    一个 tick,即合约的最小价格变动单位。

    最优卖价7.712 BTC$103,805.7
    最优买价7.266 BTC$103,805.6
  2. 步骤 2

    最优买价与卖价上的美元深度

    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=买价 + 卖价=$1.55M
    spread_depth_ratio=买卖价差 / 14.978 BTC=0.0067

    在 OKX 上,挂单量以合约张数计,且未乘以合约面值,因此其美元深度为合约张数 × 价格。

    卖价:数量 × 价格$800.5K
    买价:数量 × 价格$754.3K
  3. 步骤 3

    最新报价与K线均值对比

    spread_avg=各次更新的买卖价差均值=$0.128
    total_dollar_depth_avg=各次更新的均值=$1.92M

    平均买卖价差高于一个 tick,原因是在该K线的 5,339 次更新中,有部分更新的买卖价差有所扩大。

    $6.09M$1.47M
    13:0514:00
    total_dollar_depth,最新报价total_dollar_depth_avg
  4. 步骤 4

    本根K线

    买卖价差
    $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 全天买卖价差与深度

5月,Binance上BTC的买卖价差在99.5%的K线中仅为一个最小变动价位。UTC 10:00的盘口深度是21:00的1.5×。

Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。

最优档位中位深度(买卖双侧)
$2.21M
$1.51M
000102030405060708091011121314151617181920212223

时段(UTC). Millions of USD.

一个最小变动价位为$0.10,约合价格的0.010 bps。买卖价差固定在一个价位时,变化的是深度。UTC 10:00时段最优档位中位深度为$2.2M,21:00为$1.5M。

基于单一日均值的滑点模型,会在流动性稀薄时段高估深度,在流动性充裕时段低估深度。

买卖价差最宽与最窄的合约

统计范围为Binance、OKX和Hyperliquid上按24小时成交量排名前100的永续合约。

延迟15分钟至11:30 UTC每5分钟自动更新

最高

#永续合约24小时买卖价差中位数
  1. 1BULLA Binance · USDT9.09 bps
  2. 2ADA Binance · USDT6.91 bps
  3. 3SNXX Binance · USDT5.19 bps
  4. 4MMT Binance · USDT4.62 bps
  5. 5WLD Binance · USDT4.24 bps

最低

#永续合约24小时买卖价差中位数
  1. 1BTC Binance · USDT0.016 bps
  2. 2BTC OKX · USDT0.016 bps
  3. 3BTC Binance · USDC0.016 bps
  4. 4BTC OKX · BTC0.016 bps
  5. 5XAU Binance · USDT0.028 bps

解读方法

spread 为卖价减买价,以计价货币计; spread_bps 为以中间价基点表示的同一数值; dollar_depth_bid and dollar_depth_ask 为买卖两侧最优报价上的美元挂单量; total_dollar_depth 为二者之和。

spread_depth_ratio 为买卖价差除以最优价位挂单规模,数值越高,说明价差越宽、深度越薄。

成交最活跃的前 _avg 字段为区间内所有报价更新的均值。流动性最好的永续合约上,最后一笔买卖价差几乎总是一个最小变动价位,因此应参考均值判断价差何时扩大。

买卖价差
区间内最新最优卖价减最优买价
spread_bps
最新买卖价差,以相对中间价的基点表示
spread_depth_ratio
最新买卖价差除以盘口顶层总数量
total_depth
最新买卖双方最优档总挂单量
dollar_depth_bid
最新买方最优档名义价值
dollar_depth_ask
最新卖方最优档名义价值
total_dollar_depth
最新买卖双方最优档总名义价值
spread_avg
区间内平均买卖价差
全部 14 个字段收起字段
spread_bps_avg
区间内以基点计的平均买卖价差
spread_depth_ratio_avg
区间内平均价差与深度之比
total_depth_avg
区间内买卖双方最优档平均总挂单量
dollar_depth_bid_avg
区间内买方最优档平均名义价值
dollar_depth_ask_avg
区间内卖方最优档平均名义价值
total_dollar_depth_avg
区间内买卖双方最优档平均总名义价值

从零讲解,详见 从第一性原理理解市场(我们的互动课程):

  • 买卖价差:课时 1, 从集市到订单簿 →
  • 以基点计的买卖价差:课时 2, 价差从何而来 →
  • 股票永续合约的买卖价差与深度:课时 8, 周日也能交易的股票 →
背后的研究收起研究内容

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.

下载同月数据

无需注册账户。运行一条命令,或交给您的智能体执行。
# 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"

所有交易所和永续合约,从1分钟到日线K线,均提供 Prime.

L1流动性 ,API文档中的说明:端点与参数 →

常见问题

相关内容

L2订单簿流动性5至25档挂单量滑点吃单成交相对报价付出的成本L1价格最优买卖价、中间价与微观价格
Aperiodic

基于数百TB原始数据构建,提炼为时点(point-in-time)指标,可直接以 parquet 文件获取。另附其背后的原始成交、报价及衍生品数据。

数据
  • 指标库
  • 订单流
  • L1 & L2
  • 衍生品
  • 原始数据
  • 数据目录
  • 免费数据
  • 价格
应用场景
  • 优化回测
  • 发掘新Alpha
  • 更优执行
指数
  • 全部指数
  • 订单流指数
  • Pressure Index
  • Conviction Index
  • 持仓结构指数
  • OI Divergence Index
  • Leverage Index
  • Crowding Index
  • 流动性指数
  • Cost Index
  • Depth Index
  • Impact Index
代币化市场
  • 全部现实世界资产
  • 大宗商品永续合约
  • 代币化股票永续合约
  • 股票指数永续合约
  • 代币化ETF永续合约
  • Pre-IPO永续合约
  • 外汇永续合约
  • Hyperliquid HIP-3
实时行情
  • 实时市场看板
  • 全部永续合约,A–Z
  • 现实世界资产看板
  • 全球流动性
  • 异动监测
  • 实时资金费率
开发者
  • 文档
  • API 文档
  • MCP服务器
  • 面向AI智能体
  • Pre-flight
  • Notebooks
  • 集成
  • Atlas Security Master
  • TParquet
  • llms.txt
学习
  • 从第一性原理理解市场
  • 市场微观结构指南
  • Replays
  • 系统架构
  • 研究博客
  • 常见问题
公司
  • 团队
  • 联系我们
  • 预约通话
  • 更新日志
  • 路线图
对比
  • 全部供应商
  • 价格对比
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
  • vs. Crypto Lake
  • vs. Laevitas
  • vs. Coinalyze
交易所数据
  • Binance归档数据
  • Hyperliquid数据
  • Binance未平仓量历史API
  • OKX历史API

© 版权所有 2026 Aperiodic。保留所有权利。

Aperiodic Limited · 注册地:Ireland · 公司编号:815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland
服务条款隐私政策授权许可SLA
  • English
  • 简体中文
  • 한국어
  • 日本語