同方向の約定がどれだけ連続し、売買方向がどれだけ頻繁に入れ替わるかを示します。
同方向の約定が連続する長さ(ラン長)、その偏り、売買方向の転換率、方向転換時の価格変化を示します。
2025年6月11日 14:38〜14:39 UTC の Binance BTC-USDT パーペチュアルにおける全11,692件の約定(無料の生約定データプレビューより)。
ステップ 1
ランとは、テイカー側が同じ約定が連続する並びのことです。この1分間には 1,200 回のランがあり、うち 600 がテイカー売り、 600 がテイカー買いでした。
ステップ 2
最長のランは 339 回連続のテイカー売りで、開始時刻は 14:38:19.1。価格は最初の約定から最後の約定までに -1.36 bps 変動しました。
ステップ 3
ステップ 4
Binance BTC-USDT無期限先物、5分足、2025年5月1日〜31日(無料プレビューより)。
反転率別のバー(反転が最も少ないものから最も多いものまで). ベーシスポイント動いたことになります。
反転率で並べると、反転が最も少ない上位10%のバーでは値動きの中央値が8.37 bps、最も多い10%のバーでは3.02 bpsでした。全バーを通じた反転率と値動きの大きさの相関は-0.27です。中央値のバーでは、約定の10.9%でサイドが反転していました。
典型的なバーにおける最長ランは同一サイドで342件連続の約定で、5月全体での最長は5,482件でした。
ランとは、同じサイドで連続する約定の連なりのことです。 buy_run_max_len and sell_run_max_len は、バー内で最も長いランを表し、 _mean_len フィールドはその平均値を表します。
flip_rate は、直前の約定からサイドが入れ替わった約定の割合です。1に近いほど買いと売りが交互に発生しており、低い値は一方のサイドが約定し続けたことを意味します。
run_imbalance は、買いランと売りランを-1から1の範囲で比較します。 price_change_on_flip は、サイドが反転した際の平均価格変動です。
基礎から解説しています: 第一原理から学ぶマーケット(当社のインタラクティブコース):
Here's a microstructure concept that rarely gets discussed outside market-making desks: trade runs — consecutive sequences of same-direction trades. Their statistical properties reveal the hidden structure of order flow in ways that aggregate volume metrics completely miss.
Lillo & Farmer (2004) made a striking empirical discovery: order flow in equity markets exhibits long-range autocorrelation, with a Hurst exponent significantly above 0.5. Buys tend to follow buys, and sells follow sells, at horizons far longer than can be explained by individual order splitting. They attributed this to the herding behavior of institutional investors and the mechanical persistence of algorithmic execution.
Earlier, Hasbrouck (1991) showed that the autocorrelation structure of trade signs (buy/sell sequences) carries information about the permanent price impact of trades. Trades that cluster into runs tend to have higher permanent impact than isolated trades — because runs are the signature of informed order flow that the market hasn't yet fully absorbed.
Bouchaud et al. (2004) formalized this in their propagator model, showing that the long memory of order flow, combined with a power-law decay in individual trade impact, produces a market that is approximately efficient despite highly predictable order flow.
The flip rate is directly related to the Roll (1984) model of the bid-ask bounce: in a pure noise-trading world with constant spreads, every trade should alternate between bid and ask, producing a flip rate near 1.0 and negative first-order return autocorrelation exactly equal to the squared half-spread. Deviations from this benchmark — particularly low flip rates — indicate that something beyond the mechanical bid-ask bounce is driving the tape.
Run imbalance is particularly powerful: if buy runs average 8 trades but sell runs average 3, buyers are sustaining pressure longer. This asymmetry often precedes continued price movement — it's the microstructure expression of the order flow autocorrelation that Lillo & Farmer documented at daily horizons, compressed into intrabar timescales.
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 run_structure --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.
トレードのラン構造 のAPIドキュメント:エンドポイントとパラメータ →