失衡,前10档, BTC 永续合约,近24小时
延迟15分钟…每5分钟自动更新
失衡,前10档,最新值
大于零表示买单挂单量更多。留意同一时间各交易所方向相反的情况。
今日成交最活跃的10个订单簿中,有8个卖单量超过买单量。 失衡最明显的是SKHYNIX,买方占比53%。
← 卖单买单 →
l2_imbalance.imbalance_ratio_10前10档 · 均值 · 24小时
订单簿前5、10、20和25档的买单量与卖单量对比。
多档位(5、10、20、25档)订单簿失衡值、失衡比率及其均值。
2025年5月14日14:00至14:05 UTC的5分钟K线,Binance BTC-USDT永续合约,数据来自免费预览。
步骤 1
每个订单簿快照包含买卖两侧各前25档价格。每个深度指标汇总前 N 档的挂单量,N 取5、10、20和25。不使用各档位的价格。
步骤 2
每增加一个更深的档位区间,卖单增加的挂单量都多于买单,因此该比率随深度增加而下降。
步骤 3
从整根K线的平均水平看,订单簿比收盘时更偏向卖单一侧。
步骤 4
Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。
各深度平均订单簿失衡与价格变动的关系.
各深度平均失衡与当期及下一K线价格变动的相关系数。仅盘口最优档的相关系数为0.38。对下一K线而言,各深度均接近零:5档为0.002,25档为0.003。
BTC在Binance上的订单簿每个最小报价单位都有挂单,因此25档仅覆盖$2.50的价格区间,最优档失衡与25档失衡的相关系数达0.92。在该订单簿上,更深档位带来的增量信息有限;而在较薄的订单簿上,25档覆盖的价格区间更大。本页仅测算BTC。
延迟15分钟至11:30 UTC每5分钟自动更新
imbalance_N 为前N档买单量减去卖单量, imbalance_ratio_N 则将其缩放至-1到1之间。N取5、10、20或25。
成交最活跃的前 _avg 字段为区间内所有订单簿快照的均值,不带后缀的字段则取最后一个快照。
请对比盘口失衡与深层失衡。若盘口买单稀薄但后方挂单充足,说明挂单位于最优买价下方不远处,而非没有买方。
从零讲解,详见 从第一性原理理解市场(我们的互动课程):
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.
Cont, Kukanov & Stoikov (2014) provided the definitive empirical analysis, showing that order book imbalance — defined as:
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.
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:
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.
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:
# 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文档中的说明:端点与参数 →