Aperiodic
指標
マーケットライブ
ドキュメント料金
データを取得

指標ライブラリ · 注文フロー

トレードのラン構造

サンプルCSV
Binance BTC-USDT無期限先物、5分足、2025年5月1日〜31日(無料プレビューより)。無料の遅延フィードではこのデータセットは提供されません。有料プランではリアルタイムで配信されます。
算出方法BTC, May 2025フィールドダウンロードよくある質問

同方向の約定がどれだけ連続し、売買方向がどれだけ頻繁に入れ替わるかを示します。

同方向の約定が連続する長さ(ラン長)、その偏り、売買方向の転換率、方向転換時の価格変化を示します。

Built from
約定
フィールド
7
時間足
1m to 1d; 15s and 30s on Prime
プラン
Pro
取引所
Binance, OKX, Hyperliquid
ライブ
有料プランはリアルタイム

算出方法

実際の1分間の約定データを、フィールドごとに示します。各値は当社パイプラインの出力と一致しています。

2025年6月11日 14:38〜14:39 UTC の Binance BTC-USDT パーペチュアルにおける全11,692件の約定(無料の生約定データプレビューより)。

  1. ステップ 1

    約定を連続区間(ラン)に分割する

    ランとは、テイカー側が同じ約定が連続する並びのことです。この1分間には 1,200 回のランがあり、うち 600 がテイカー売り、 600 がテイカー買いでした。

    11,692件の約定を読み込み中
  2. ステップ 2

    ランを計測する

    sell_run_max_len=売りの最長連続回数=339
    buy_run_max_len=買いの最長連続回数=124
    sell_run_mean_len=売りの平均連続回数=13.52
    buy_run_mean_len=買いの平均連続回数=5.97

    最長のランは 339 回連続のテイカー売りで、開始時刻は 14:38:19.1。価格は最初の約定から最後の約定までに -1.36 bps 変動しました。

    11,692件の約定を読み込み中
  3. ステップ 3

    反転率とインバランス

    flip_rate=反転 1,199回 / 約定 11,692件=10.3%
    run_imbalance=(買い最大値 − 売り最大値) / (買い最大値 + 売り最大値)=-0.464
    price_change_on_flip=反転時の平均 |リターン|=0.108 bps
  4. ステップ 4

    当該バー

    buy_run_max_len
    124
    sell_run_max_len
    339
    buy_run_mean_len
    5.97
    sell_run_mean_len
    13.52
    run_imbalance
    -0.464
    flip_rate
    0.1025
    price_change_on_flip
    1.08e-5

一方向に偏ったバーでは、BTCはより大きく動くのか?

約定の売買方向がほとんど入れ替わらなかったBTCのバーは、頻繁に入れ替わったバーと比べて2.8×の値幅で動きました。

Binance BTC-USDT無期限先物、5分足、2025年5月1日〜31日(無料プレビューより)。

同じバー内の値動きの大きさ(中央値)
8.37
7.82
7.35
7.36
6.00
6.00
5.74
5.22
4.00
3.02
12345678910

反転率別のバー(反転が最も少ないものから最も多いものまで). ベーシスポイント動いたことになります。

反転率で並べると、反転が最も少ない上位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 は、サイドが反転した際の平均価格変動です。

buy_run_max_len
買い方向の約定が連続した最長の回数
sell_run_max_len
売り方向の約定が連続した最長の回数
buy_run_mean_len
買い方向の約定が連続した回数の平均
sell_run_mean_len
売り方向の約定が連続した回数の平均
run_imbalance
最長の買いラン長と最長の売りラン長の差を正規化した値
flip_rate
直前の約定から売買方向が転換した約定の割合
price_change_on_flip
売買方向が転換した際の価格変化(絶対値)の平均

基礎から解説しています: 第一原理から学ぶマーケット(当社のインタラクティブコース):

  • トレード・ラン・インバランス:レッスン 3, 誰が価格を動かしているのか →
背景にあるリサーチリサーチを閉じる

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.

The theoretical basis

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.

What we measure

  • Maximum run length (buy/sell separately) — the longest uninterrupted same-direction streak. Long runs signal sustained directional pressure — either a large order executing incrementally or multiple participants leaning the same way.
  • Mean run length — average persistence before a direction flip. Higher means more serial correlation in the tape.
  • Run imbalance ratio — (max_buy_run − max_sell_run) / (max_buy_run + max_sell_run). Captures asymmetry in directional persistence.
  • Flip rate — fraction of trades that change direction. High flip rate = choppy, mean-reverting tape. Low flip rate = persistent flow.
  • Price change on direction flip — how much price moves when a run ends. Large price changes on flips indicate that runs represent genuine information being incorporated; small changes suggest noise.

Practical implications

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:

  • Lillo, F. & Farmer, J.D. (2004). "The Long Memory of the Efficient Market." Studies in Nonlinear Dynamics & Econometrics, 8(3).
  • Hasbrouck, J. (1991). "Measuring the Information Content of Stock Trades." Journal of Finance, 46(1), 179–207.
  • Bouchaud, J.-P., Gefen, Y., Potters, M. & Wyart, M. (2004). "Fluctuations and Response in Financial Markets: The Subtle Nature of 'Random' Price Changes." Quantitative Finance, 4(2), 176–190.
  • Roll, R. (1984). "A Simple Implicit Measure of the Effective Bid–Ask Spread in an Efficient Market." Journal of Finance, 39(4), 1127–1139.

同じ月のデータをダウンロード

アカウント登録は不要です。コマンドを1つ実行するか、エージェントに任せるだけです。
# 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ドキュメント:エンドポイントとパラメータ →

よくあるご質問

関連項目

フローテイカーの買いと売りを、サイズ別・トキシシティとあわせて表示アップティック/ダウンティック価格を上げた約定、下げた約定、動かさなかった約定インパクトカイルのラムダ、Amihud、そしてサイズに伴うコスト
Aperiodic

数百テラバイトに及ぶ生データから構築し、parquetファイルとして取得できるポイントインタイムの指標に集約しました。その基となる約定、気配値、デリバティブの生データもご利用いただけます。

データ
  • 指標ライブラリ
  • 注文フロー
  • L1 & L2
  • デリバティブ
  • 生データ
  • データカタログ
  • 無料データ
  • 料金
ユースケース
  • バックテストを改善
  • 新たなアルファを発見
  • よりスマートに執行
指数
  • すべての指数
  • フローインデックス
  • Pressure Index
  • Conviction Index
  • ポジショニングインデックス
  • OI Divergence Index
  • Leverage Index
  • Crowding Index
  • 流動性インデックス
  • Cost Index
  • Depth Index
  • Impact Index
トークン化市場
  • すべての現実資産
  • コモディティ無期限先物
  • トークン化株式パーペチュアル
  • 株価指数パーペチュアル
  • トークン化ETFパーペチュアル
  • Pre-IPO無期限先物
  • FX無期限先物
  • Hyperliquid HIP-3
ライブマーケット
  • ライブマーケットダッシュボード
  • 全無期限先物(A–Z)
  • 現実資産(RWA)ボード
  • グローバル流動性
  • 異常な動き
  • ライブ資金調達率
開発者向け
  • ドキュメント
  • API ドキュメント
  • MCPサーバー
  • AIエージェント向け
  • Pre-flight
  • ノートブック
  • 連携
  • Atlas Security Master
  • TParquet
  • llms.txt
学ぶ
  • 第一原理から学ぶマーケット
  • マイクロストラクチャーガイド
  • リプレイ
  • アーキテクチャ
  • リサーチブログ
  • よくある質問
会社情報
  • チーム
  • お問い合わせ
  • 打ち合わせを予約
  • 更新履歴
  • ロードマップ
比較:
  • 全ベンダー
  • 料金比較
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
  • vs. Crypto Lake
  • vs. Laevitas
  • vs. Coinalyze
取引所データ
  • Binanceアーカイブ
  • Hyperliquidデータ
  • Binance OI履歴API
  • OKX履歴API

© Copyright 2026 Aperiodic. All Rights Reserved.

Aperiodic Limited · Irelandにて登記 · 会社番号 815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland
利用規約プライバシーポリシーライセンスSLA
  • English
  • 简体中文
  • 한국어
  • 日本語