모든 호가 갱신에서 산출한 최우선 매수·매도 호가와 각 잔량, 그리고 마이크로프라이스입니다.
최우선 매수·매도 호가와 잔량, 중간가격, 수량가중 중간가격, 시간·거래량가중 평균, 호가 갱신 빈도를 제공합니다.
무료 미리보기에서 가져온 2025년 5월 14일 14:00~14:05 UTC의 Binance BTC-USDT 무기한 선물 5분봉입니다.
단계 1
거래소는 최우선 매수 호가나 매도 호가가 바뀔 때마다 이를 전송하며, 이 바에서는 5,339 회 전송되었습니다. 일반 필드에는 마지막 호가가 저장됩니다.
단계 2
각 가격에 반대편 수량으로 가중치를 부여하므로 마이크로프라이스는 수량이 적은 쪽에 더 가깝게 위치합니다. 여기서는 매도 호가 쪽 수량이 약간 더 많아 마이크로프라이스가 중간가보다 조금 낮습니다. 저장 필드에서는 이 값을 다음과 같이 반올림합니다: $103,805.65.
$0.10 스프레드 확대 표시.
단계 3
체결 TWAP과 마찬가지로, 각 호가가 유지된 시간과 관계없이 모든 업데이트에 동일한 가중치를 부여합니다.
이 바까지 최근 1시간 동안 각 5분 바 종료 시점의 매수 호가와 매도 호가입니다.
단계 4
Binance BTC-USDT 무기한 선물, 5분봉, 2025년 5월 1일~31일, 무료 미리보기 기준입니다.
마감 시점 마이크로프라이스 편향별 바(매수 호가 쪽 최대 편향부터 매도 호가 쪽 최대 편향까지). 베이시스포인트 움직였습니다.
마감 시점에 마이크로프라이스가 중간가에서 얼마나 떨어져 있었는지를 기준으로 바를 정렬했습니다. 가운데 8개 십분위에서는 뚜렷한 패턴이 나타나지 않습니다. 매도 호가 쪽으로 가장 크게 기운 십분위는 이후 평균 1.56 bps 상승했고, 매수 호가 쪽으로 가장 크게 기운 십분위는 평균 1.15 bps 하락했습니다.
호가창은 초당 15회 갱신되었으며(바 중앙값 기준 호가 업데이트 4,548회), 마이크로프라이스의 예측력은 초 단위에서 작동합니다. 5분 단위에서는 가장 강한 편향만 드러납니다.
bid_price, ask_price, bid_amount and ask_amount 는 구간 종료 시점의 최우선 호가와 해당 수량입니다. midprice 는 두 호가의 평균입니다.
weighted_midprice 는 각 호가에 반대편 수량을 가중치로 부여하므로, 수량이 적은 쪽으로 이동합니다. 중간가보다 위에 있다면 매도 호가 쪽이 더 얇다는 뜻입니다.
quote_update_frequency 는 구간 내 최우선 호가 업데이트 횟수를, avg_update_interval 는 업데이트 간 시간 간격을 밀리초 단위로 나타냅니다. 거래소 활동이 잦아들면 이 지표에 가장 먼저 드러납니다.
기초부터 설명하는 자료 기본 원리로 이해하는 시장, 인터랙티브 강좌:
L1 data — the best bid and best ask at any moment — appears deceptively simple. Four numbers: two prices, two quantities. But the derived metrics reveal the real-time behavior of market makers and the microstructure of price formation in ways that trade data alone cannot capture.
The standard midprice, (bid + ask) / 2, treats both sides equally. But Stoikov (2018) showed that the quantity-weighted midprice — which shifts the midpoint proportional to the size available at each side — is a significantly better predictor of the next transaction price. If the bid carries 10× the size of the ask, fair value isn't halfway between them; it's closer to the ask, reflecting the imbalance in immediately available liquidity.
We compute both the standard and weighted midprice, plus their time-series counterparts:
A bid that was consistently improving versus one that was stable then collapsed looks identical in OHLC but produces strikingly different TWAP trajectories.
How many times the best bid/ask changes per interval is one of the most informative L1 metrics — and one of the least studied outside HFT firms.
Hasbrouck & Saar (2013) documented the rise of "low-latency trading" through quote update patterns, showing that high-frequency quoting activity contains predictive information about future price moves. The intuition:
The extreme case — quote update frequency spikes massively but price barely moves — can indicate quote stuffing: the potentially manipulative practice of flooding the book with rapid-fire quote updates to create artificial latency and confuse competing algorithms. Egginton, Van Ness & Van Ness (2016) documented this phenomenon and its effects on market quality.
The average update interval (time between consecutive quote changes) completes the picture. When this metric compresses during a session, the market is entering a high-information regime — market makers are processing new information faster.
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_price --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분봉부터 일봉까지 제공되며, 다음 항목이 포함됩니다. Pro.
L1 가격 API 문서에서 엔드포인트와 파라미터 확인 →