최우선 호가의 매수 잔량 대비 매도 잔량을 바 종료 시점 값과 바 전체 평균으로 제공합니다.
매수/매도 불균형, 비율, 비중 — 시점값(최종값)과 구간 평균값을 모두 제공합니다.
무료 미리보기에서 가져온 2025년 5월 14일 14:00~14:05 UTC의 Binance BTC-USDT 무기한 선물 5분봉입니다.
단계 1
imbalance_ratio는 −1(매수 호가 물량 없음)부터 1(매도 호가 물량 없음)까지의 값을 가집니다. 이 봉의 마감 시점에는 양측 물량이 거의 같았습니다.
단계 2
최종 호가 기준 값은 봉마다 크게 변동합니다. 봉 내 업데이트의 평균값은 변동 폭이 더 작습니다. 각 업데이트는 유지된 시간과 관계없이 한 번씩만 반영됩니다.
단계 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 필드는 구간 내 모든 호가 업데이트에 대한 평균으로, 각 업데이트를 한 번씩 집계합니다. 접두어가 없는 필드는 마지막 호가 기준입니다. 호가가 취소되고 다시 제시되는 일이 잦을 때 두 값의 차이가 가장 커집니다.
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 문서에서 엔드포인트와 파라미터 확인 →