同一组成交的两种均价。VWAP按每笔成交的规模加权;我们的TWAP对每笔成交等权计算。
成交量加权与时间加权平均价格,提供精确的执行基准。
2025年6月11日14:38至14:39(UTC)Binance BTC-USDT永续合约的全部11,692笔成交,数据取自免费的原始成交预览。
步骤 1
这一分钟结束时,两者相差 0.108 bps 。
步骤 2
VWAP按每笔成交的BTC数量加权。此处的TWAP是成交价格的简单平均,并非按时间加权,因此一笔$110的成交与一笔$264K的成交权重相同。它等于range数据集中的price_mean。
步骤 3
Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。
按成交量排序的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 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.
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 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.
Measuring fills against both benchmarks simultaneously reveals different aspects of execution quality:
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 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文档中的说明:端点与参数 →