Aperiodic
指标
市场实时
文档价格
获取数据

指标库 · L1与L2订单簿

L1价格

示例CSV
Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。免费延迟数据源不含该数据集,付费套餐提供实时推送。
构建方法BTC, May 2025字段下载常见问题

基于每次报价更新的最优买价、卖价及各自挂单量,并附微观价格。

最优买价与卖价及对应数量、中间价、数量加权中间价、时间/成交量加权均值,以及报价更新频率。

Built from
L1(最优报价)
字段
12
K线周期
1m to 1d; 15s and 30s on Prime
套餐
Pro
交易所
Binance, OKX, Hyperliquid
实时
付费套餐提供实时数据

构建方法

取自免费预览的一根真实5分钟K线,逐字段展示。

2025年5月14日14:00至14:05 UTC的5分钟K线,Binance BTC-USDT永续合约,数据来自免费预览。

  1. 步骤 1

    取最后一笔报价

    交易所在最优买价或卖价任一变化时推送报价,本K线内共 5,339 次。普通字段保存最后一笔报价。

    最优卖价7.712 BTC$103,805.7
    最优买价7.266 BTC$103,805.6
  2. 步骤 2

    中间价与微价格

    中间价=(买价 + 卖价) / 2=$103,805.65
    weighted_midprice=(买价 × 7.712 + 卖价 × 7.266) / 14.978=$103,805.6485

    每个价格按对侧数量加权,因此微价格更靠近较薄的一侧。此处卖价一侧数量略多,因此微价格略低于中间价。存储字段将其取整为 $103,805.65.

    最优卖价7.712 BTC$103,805.7
    最优买价7.266 BTC$103,805.6
    买价 $103,805.6卖价 $103,805.7中间价 $103,805.65微价格 $103,805.6485

    $0.10 买卖价差(放大显示)。

  3. 步骤 3

    对每次更新取平均

    bid_price_twap=Σ 买价 / 5,339次更新=$103,820.59
    bid_price_vwap=Σ (买价 × 买单量) / Σ 买单量=$103,819.14

    与成交TWAP一样,这些字段对每次更新赋予相同权重,而不是按每笔报价持续的时长加权。

    $104,222.8$103,563.2
    13:0514:00

    截至本K线的一小时内,每根5分钟K线收盘时的买价和卖价。

  4. 步骤 4

    本根K线

    bid_price
    $103,805.6
    ask_price
    $103,805.7
    bid_amount
    7.266 BTC
    ask_amount
    7.712 BTC
    中间价
    $103,805.65
    weighted_midprice
    $103,805.65
    ask_price_twap
    $103,820.72
    ask_price_vwap
    $103,825.80
    quote_update_frequency
    5,339

微观价格能否预判BTC的下一步走势?

微观价格对BTC下一个5分钟走势方向的判断准确率为52.3%。

Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。

平均中间价变动:未来5分钟
-1.15
-0.305
-0.102
-0.046
-0.014
-0.211
0.296
0.003
1.20
1.56
12345678910

收盘时按微观价格偏向分组的K线,从最偏向买价到最偏向卖价. 个基点。

按收盘时微观价格偏离中间价的程度对K线排序。中间八个十分位没有呈现规律。最偏向卖价的十分位随后平均上涨1.56 bps,最偏向买价的十分位平均下跌1.15 bps。

订单簿每秒更新15次(K线中位数含4,548次报价更新),微观价格的预测时效以秒计。在5分钟级别上,只有最强的偏向才会显现。

解读方法

bid_price, ask_price, bid_amount and ask_amount 为区间结束时的最优报价及其数量。 midprice 为两者的平均值。

weighted_midprice 以对侧数量为各侧加权,因此会向数量较少的一侧移动。高于中间价意味着卖方更薄。

quote_update_frequency 统计区间内最优报价的更新次数, avg_update_interval 为两次更新之间的间隔(毫秒)。交易所一旦转入沉寂,最先体现在这里。

ask_price
区间内最后的最优卖价
bid_price
区间内最后的最优买价
ask_amount
区间内最后的最优卖价数量
bid_amount
区间内最后的最优买价数量
quote_update_frequency
区间内盘口最优报价的更新次数
avg_update_interval
盘口最优报价两次更新之间的平均毫秒数
中间价
最后的最优买价与卖价的中点
weighted_midprice
以对侧盘口最优报价数量加权的中间价
全部 12 个字段收起字段
bid_price_twap
区间内最优买价的平均值
ask_price_twap
区间内最优卖价的平均值
bid_price_vwap
以最优买单数量加权的买价均值
ask_price_vwap
以最优卖单数量加权的卖价均值

从零讲解,详见 从第一性原理理解市场(我们的互动课程):

  • 最优买价和卖价:课时 1, 从集市到订单簿 →
  • 中间价:课时 1, 从集市到订单簿 →
  • 加权中间价:课时 2, 价差从何而来 →
背后的研究收起研究内容

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.

Beyond the midprice

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:

  • Bid/Ask TWAP — time-weighted average of the best bid/ask over the interval. This reveals how quote behavior evolved within a bar, not just where it ended.
  • Bid/Ask VWAP — volume-weighted average, emphasizing price levels where actual depth was concentrated.

A bid that was consistently improving versus one that was stable then collapsed looks identical in OHLC but produces strikingly different TWAP trajectories.

Quote update frequency: the market maker's heartbeat

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:

  • Low update frequency → market makers are stable, comfortable with their inventory, confident in their fair-value estimate
  • High update frequency → market makers are aggressively adjusting, either because informed flow is arriving (the Glosten & Milgrom, 1985, adverse selection response) or because they're competing intensely for priority

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:

  • Stoikov, S. (2018). "The Micro-Price: A High-Frequency Estimator of Future Prices." Quantitative Finance, 18(12), 1959–1966.
  • Hasbrouck, J. & Saar, G. (2013). "Low-Latency Trading." Journal of Financial Markets, 16(4), 646–679.
  • Glosten, L.R. & Milgrom, P.R. (1985). "Bid, Ask and Transaction Prices in a Specialist Market with Heterogeneously Informed Traders." Journal of Financial Economics, 14(1), 71–100.
  • Egginton, J.F., Van Ness, B.F. & Van Ness, R.A. (2016). "Quote Stuffing." Financial Management, 45(3), 583–608.

下载同月数据

无需注册账户。运行一条命令,或交给您的智能体执行。
# 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分钟到日线K线,均提供 Pro.

L1价格 ,API文档中的说明:端点与参数 →

常见问题

相关内容

L1失衡最优报价处的买卖挂单量对比L1流动性买卖价差与盘口挂单金额L2订单簿失衡买卖挂单量对比,5至25档深度
Aperiodic

基于数百TB原始数据构建,提炼为时点(point-in-time)指标,可直接以 parquet 文件获取。另附其背后的原始成交、报价及衍生品数据。

数据
  • 指标库
  • 订单流
  • L1 & L2
  • 衍生品
  • 原始数据
  • 数据目录
  • 免费数据
  • 价格
应用场景
  • 优化回测
  • 发掘新Alpha
  • 更优执行
指数
  • 全部指数
  • 订单流指数
  • Pressure Index
  • Conviction Index
  • 持仓结构指数
  • OI Divergence Index
  • Leverage Index
  • Crowding Index
  • 流动性指数
  • Cost Index
  • Depth Index
  • Impact Index
代币化市场
  • 全部现实世界资产
  • 大宗商品永续合约
  • 代币化股票永续合约
  • 股票指数永续合约
  • 代币化ETF永续合约
  • Pre-IPO永续合约
  • 外汇永续合约
  • Hyperliquid HIP-3
实时行情
  • 实时市场看板
  • 全部永续合约,A–Z
  • 现实世界资产看板
  • 全球流动性
  • 异动监测
  • 实时资金费率
开发者
  • 文档
  • API 文档
  • MCP服务器
  • 面向AI智能体
  • Pre-flight
  • Notebooks
  • 集成
  • Atlas Security Master
  • TParquet
  • llms.txt
学习
  • 从第一性原理理解市场
  • 市场微观结构指南
  • Replays
  • 系统架构
  • 研究博客
  • 常见问题
公司
  • 团队
  • 联系我们
  • 预约通话
  • 更新日志
  • 路线图
对比
  • 全部供应商
  • 价格对比
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
  • vs. Crypto Lake
  • vs. Laevitas
  • vs. Coinalyze
交易所数据
  • Binance归档数据
  • Hyperliquid数据
  • Binance未平仓量历史API
  • OKX历史API

© 版权所有 2026 Aperiodic。保留所有权利。

Aperiodic Limited · 注册地:Ireland · 公司编号:815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland
服务条款隐私政策授权许可SLA
  • English
  • 简体中文
  • 한국어
  • 日本語