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

指标库 · 衍生品

VWAP / TWAP

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

同一组成交的两种均价。VWAP按每笔成交的规模加权;我们的TWAP对每笔成交等权计算。

成交量加权与时间加权平均价格,提供精确的执行基准。

Built from
行情数据
字段
2
K线周期
1m to 1d; 15s and 30s on Prime
套餐
Pro
交易所
Binance, OKX, Hyperliquid
实时
付费套餐提供实时数据

构建方法

一分钟的真实成交,逐字段展示。每个数值均与我们数据管道的输出一致。

2025年6月11日14:38至14:39(UTC)Binance BTC-USDT永续合约的全部11,692笔成交,数据取自免费的原始成交预览。

  1. 步骤 1

    用两种方式计算成交均价

    这一分钟结束时,两者相差 0.108 bps 。

    正在加载11,692笔成交
  2. 步骤 2

    按成交量加权,或等权

    vwap=Σ (数量 × 价格) / Σ 数量=$109,969.75
    twap=Σ 价格 / 11,692笔成交=$109,968.56

    VWAP按每笔成交的BTC数量加权。此处的TWAP是成交价格的简单平均,并非按时间加权,因此一笔$110的成交与一笔$264K的成交权重相同。它等于range数据集中的price_mean。

  3. 步骤 3

    本根K线

    vwap
    $109,969.75
    twap
    $109,968.56

成交活跃的K线上VWAP与TWAP的偏离程度

在BTC成交最活跃的K线上,VWAP与TWAP的偏离比最清淡的K线多出4.9×。

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

VWAP与TWAP的中位差距
0.144
0.204
0.241
0.273
0.308
0.342
0.387
0.443
0.550
0.703
12345678910

按成交量排序的K线,从最清淡的10%到最活跃的10%. 个基点。

当月中位差距为0.32 bps,每100根K线中有1根超过2.74 bps。按成交量排序,成交最清淡的十分之一K线中位差距为0.14 bps,最活跃的十分之一为0.70 bps。

两个基准在成交量最大的K线上分歧最大。在这些K线上,TWAP距离大部分成交量的成交价格最远。

解读方法

vwap 为区间内价格乘以数量之和,除以该区间的成交总量。 twap 为成交价格的简单平均:每笔成交只计一次,与成交规模或价格停留时长无关。

vwap 见上方 twap 表示大额成交的成交价高于一般成交;低于则表示其成交价更低。

两者都不是单笔订单可以实际成交的价格。应将其用作基准,用于评估执行质量,或在不模拟订单簿的回测中作为成交价。

vwap
区间内按成交规模加权的平均价格
twap
区间内成交价的算术平均值
背后的研究收起研究内容

VWAP and TWAP are both price averages over an interval. But they weight observations differently — by volume and by time, respectively — and the divergence between them is itself a powerful signal about the quality of price moves.

The execution benchmark perspective

Berkowitz, Logue & Noser (1988) established VWAP as the standard institutional execution benchmark, arguing that it represents the "average price available to the market" weighted by actual trading intensity. An institution that consistently buys above VWAP is demonstrably executing worse than the average participant — either because of adverse selection, poor timing, or market impact.

TWAP, by contrast, treats all time equally. It's the benchmark for time-sliced execution algorithms that distribute orders uniformly across a window, ignoring volume patterns. Madhavan (2002) noted that the choice of benchmark reveals the execution strategy's implicit assumption: VWAP assumes you should trade when everyone else does; TWAP assumes you should trade at a constant rate regardless.

The signal in the divergence

The gap between VWAP and TWAP encodes information about the structure of trading within the bar:

VWAP > TWAP → Volume was disproportionately concentrated at higher prices. Heavy-volume trades happened at the top of the range. This is a bullish volume-quality signal: the market didn't just drift up on thin liquidity — participants endorsed the higher prices with real size. This aligns with the Blume, Easley & O'Hara (1994) finding that volume conveys information about the precision of traders' signals.

TWAP > VWAP → Price was elevated for extended periods but on thin volume. The asset spent time at high prices, but trading activity didn't endorse those levels. This is the signature of a thin-market drift — potentially unsustainable and vulnerable to reversal once volume returns.

For performance attribution

Measuring fills against both benchmarks simultaneously reveals different aspects of execution quality:

  • Fills consistently above VWAP → adverse selection. You're systematically buying at the worst prices within each bar.
  • Fills between VWAP and TWAP → depends on which is higher. If VWAP > TWAP and you're between them, you're beating the volume-weighted average but still paying above the time-average — acceptable in a strong market.
  • VWAP-TWAP spread as a feature → the magnitude of this divergence predicts subsequent reversal probability. Extreme divergence means the current bar's volume-weighted price is far from its time-weighted price — an unstable configuration.

References:

  • Berkowitz, S.A., Logue, D.E. & Noser, E.A. (1988). "The Total Cost of Transactions on the NYSE." Journal of Finance, 43(1), 97–112.
  • Madhavan, A. (2002). "VWAP Strategies." Trading, 1, 32–39.
  • Blume, L., Easley, D. & O'Hara, M. (1994). "Market Statistics and Technical Analysis: The Role of Volume." Journal of Finance, 49(1), 153–181.

下载同月数据

无需注册账户。运行一条命令,或交给您的智能体执行。
# 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 vtwap --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.

VWAP / TWAP ,API文档中的说明:端点与参数 →

常见问题

相关内容

K线基于每笔成交构建的K线与成交量滑点吃单成交相对报价付出的成本成交规模小、中、大单及尾部分布
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
  • 简体中文
  • 한국어
  • 日本語