最良気配における買い数量と売り数量の比較を、バー終了時点の値とバー内平均で示します。
買い気配と売り気配のインバランス、比率、構成比を、瞬時値(直近値)と区間平均値の両方で提供します。
2025年5月14日 14:00〜14:05 UTCの5分足(Binance BTC-USDT無期限先物、無料プレビューより)。
ステップ 1
imbalance_ratio は −1(買い気配に注文なし)から 1(売り気配に注文なし)までの値をとります。このバーの終値時点では、両サイドはほぼ均衡していました。
ステップ 2
最終気配の値はバーごとに大きく変動します。バー内の更新を平均した値は変動が小さくなります。各更新は、提示されていた時間の長さにかかわらず1回として数えられます。
ステップ 3
平均は 56.3となりますが、平均すると買い気配が数量の 44.0% を占めていました。売り気配がほぼ空になった更新がいくつかあるだけで bid / ask は非常に大きくなり、平均値もそれに引きずられます。imbalance_ratio は −1 から 1 の範囲に収まるため、この問題は生じません。
ステップ 4
Binance BTC-USDT無期限先物、5分足、2025年5月1日〜31日(無料プレビューより)。
最良気配の平均不均衡別のバー(売り偏重から買い偏重へ). ベーシスポイント動いたことになります。
平均不均衡でバーを並べると、最も売り偏重な上位10%は平均6.71 bps下落し、最も買い偏重な上位10%は6.50 bps上昇しました。板は値動きが起きている最中に、その方向へ傾いていたことになります。
次のバーについては、最新の情報であるため、終値時点の値の方が平均値よりも優れた結果を示しました(0.055対0.002)。ただしノイズも大きく、12%のバーで±0.9を超え、その瞬間には片側がほぼ空の状態でした。
imbalance は、最良気配における買い注文サイズから売り注文サイズを引いた値です。 imbalance_ratio は、これを-1(すべて売り)から1(すべて買い)の範囲に正規化した値です。 bid_percentage and ask_percentage は、それぞれの側の構成比です。
取引量上位 _avg フィールドは、期間内のすべての気配更新の平均値で、各更新を1回ずつカウントします。通常のフィールドは最後の気配の値です。両者の差は、気配の取消しと再提示が繰り返されていたときに最も大きくなります。
bid_ask_ratio は、片側がほぼ空のときに非常に大きな値になります。代わりに±1に正規化した比率をご利用ください。
基礎から解説しています: 第一原理から学ぶマーケット(当社のインタラクティブコース):
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 l1_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分足から日足まで以下が付属します: Prime.
L1不均衡 のAPIドキュメント:エンドポイントとパラメータ →