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

指标库 · L1与L2订单簿

L2订单簿失衡

示例CSV

失衡,前10档, BTC 永续合约,近24小时

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

加载中…

失衡,前10档,最新值

Binance
—
OKX
—
Hyperliquid
—

大于零表示买单挂单量更多。留意同一时间各交易所方向相反的情况。

订单簿偏向哪一方?

今日成交最活跃的10个订单簿中,有8个卖单量超过买单量。 失衡最明显的是SKHYNIX,买方占比53%。

  • BTC Binance49% bid
  • ETH Binance48% bid
  • SOXL Binance49% bid
  • XAU Binance49% bid
  • SOL Binance52% bid
  • ZEC Binance49% bid
  • PIEVERSE Binance49% bid
  • SKHYNIX Binance53% bid
  • NVDA Binance48% bid
  • SNDK Binance49% bid

← 卖单买单 →

l2_imbalance.imbalance_ratio_10前10档 · 均值 · 24小时

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

订单簿前5、10、20和25档的买单量与卖单量对比。

多档位(5、10、20、25档)订单簿失衡值、失衡比率及其均值。

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

    汇总前 N 档的挂单量

    每个订单簿快照包含买卖两侧各前25档价格。每个深度指标汇总前 N 档的挂单量,N 取5、10、20和25。不使用各档位的价格。

    7.29前 57.85
    7.41前 108.16
    7.61前 208.55
    7.69前 258.67
    买单,BTC卖单,BTC
  2. 步骤 2

    每个深度对应一个比率

    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

    每增加一个更深的档位区间,卖单增加的挂单量都多于买单,因此该比率随深度增加而下降。

    imbalance_ratio_5-0.0375
    imbalance_ratio_10-0.0481
    imbalance_ratio_20-0.0586
    imbalance_ratio_25-0.0600
  3. 步骤 3

    最新快照或K线均值

    imbalance_ratio_5_avg=各快照的均值=-0.1263
    imbalance_ratio_10_avg=各快照的均值=-0.1329
    imbalance_ratio_20_avg=各快照的均值=-0.1429
    imbalance_ratio_25_avg=各快照的均值=-0.1521

    从整根K线的平均水平看,订单簿比收盘时更偏向卖单一侧。

    8.39前 512.32
    9.20前 1013.93
    10.72前 2016.26
    11.37前 2517.47
    买单,BTC卖单,BTC
  4. 步骤 4

    本根K线

    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

更深档位的失衡能否更好地追踪BTC价格?

在BTC上,档位越深,失衡与K线的相关性反而越弱:5档为0.37,25档为0.33。

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

当期K线下一K线
0.37
0.00
0.36
0.00
0.34
0.00
0.33
0.00
Top 5Top 10Top 20Top 25

各深度平均订单簿失衡与价格变动的关系.

各深度平均失衡与当期及下一K线价格变动的相关系数。仅盘口最优档的相关系数为0.38。对下一K线而言,各深度均接近零:5档为0.002,25档为0.003。

BTC在Binance上的订单簿每个最小报价单位都有挂单,因此25档仅覆盖$2.50的价格区间,最优档失衡与25档失衡的相关系数达0.92。在该订单簿上,更深档位带来的增量信息有限;而在较薄的订单簿上,25档覆盖的价格区间更大。本页仅测算BTC。

买单最重与卖单最重的订单簿

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

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

最高

#永续合约24小时前10档平均失衡
  1. 1PUMP Binance · USDT0.179
  2. 2ZHIPU Binance · USDT0.103
  3. 3ETH OKX · ETH0.100
  4. 4TSLA Binance · USDT0.099
  5. 5SUI Binance · USDT0.087

最低

#永续合约24小时前10档平均失衡
  1. 1CL Hyperliquid · USDC-0.330
  2. 2SP500 Hyperliquid · USDC-0.169
  3. 3AAPL Binance · USDT-0.156
  4. 4SPCX Binance · USDT-0.097
  5. 5SOXL Hyperliquid · USDC-0.093

解读方法

imbalance_N 为前N档买单量减去卖单量, imbalance_ratio_N 则将其缩放至-1到1之间。N取5、10、20或25。

成交最活跃的前 _avg 字段为区间内所有订单簿快照的均值,不带后缀的字段则取最后一个快照。

请对比盘口失衡与深层失衡。若盘口买单稀薄但后方挂单充足,说明挂单位于最优买价下方不远处,而非没有买方。

imbalance_5
最新前5档买单量减前5档卖单量
imbalance_10
最新前10档买单量减前10档卖单量
imbalance_20
最新前20档买单量减前20档卖单量
imbalance_25
最新前25档买单量减前25档卖单量
imbalance_ratio_5
最新前5档买卖数量的归一化差值
imbalance_ratio_10
最新前10档买卖数量的归一化差值
imbalance_ratio_20
前20档买单与卖单数量的最新归一化差值
imbalance_ratio_25
前25档买单与卖单数量的最新归一化差值
全部 24 个字段收起字段
bid_ask_ratio_5
最新前5档买单数量除以前5档卖单数量
bid_ask_ratio_10
最新前10档买单数量除以前10档卖单数量
bid_ask_ratio_20
最新前20档买单数量除以前20档卖单数量
bid_ask_ratio_25
最新前25档买单数量除以前25档卖单数量
imbalance_5_avg
区间内前5档买单数量减去前5档卖单数量的平均值
imbalance_10_avg
区间内前10档买单数量减去前10档卖单数量的平均值
imbalance_20_avg
区间内前20档买单数量减去前20档卖单数量的平均值
imbalance_25_avg
区间内前25档买单数量减去前25档卖单数量的平均值
imbalance_ratio_5_avg
区间内前5档买单与卖单数量归一化差值的平均值
imbalance_ratio_10_avg
区间内前10档买单与卖单数量归一化差值的平均值
imbalance_ratio_20_avg
区间内前20档买单与卖单数量归一化差值的平均值
imbalance_ratio_25_avg
区间内前25档买单与卖单数量归一化差值的平均值
bid_ask_ratio_5_avg
区间内前5档买单数量除以前5档卖单数量的平均值
bid_ask_ratio_10_avg
区间内前10档买单数量除以前10档卖单数量的平均值
bid_ask_ratio_20_avg
区间内前20档买单数量除以前20档卖单数量的平均值
bid_ask_ratio_25_avg
区间内前25档买单数量除以前25档卖单数量的平均值

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

  • 订单簿失衡:课时 5, 逐档吃单 →
背后的研究收起研究内容

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.

下载同月数据

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

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

L2订单簿失衡 ,API文档中的说明:端点与参数 →

常见问题

相关内容

L1失衡最优报价处的买卖挂单量对比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
  • 简体中文
  • 한국어
  • 日本語