已实现波动率,5m, BTC 永续合约,近24小时
延迟15分钟…每5分钟自动更新
已实现波动率,5m,最新值
波动率具有聚集性:一次飙升后通常会持续出现高读数,随后才逐渐回落。
在成交最活跃的100个永续合约中,EVAA的五分钟已实现波动率最高,为7.75%,是BTC(0.29%)的26倍。
returns.realized_vol成交最活跃的100个永续合约 · 每5分钟 · 24小时
基于每根K线内的成交计算波动率,并拆分为连续部分与跳跃部分。
基于对数收益率的指标:方差、已实现波动率、双幂变差、跳跃比率、自相关性及趋势性。
2025年6月11日14:38至14:39(UTC)Binance BTC-USDT永续合约的全部11,692笔成交,数据取自免费的原始成交预览。
步骤 1
11,691 收益率,首笔成交之后每笔成交对应一个。 58% 为零,即该笔成交价格与前一笔相同,这些值仍计入求和。
步骤 2
双幂次变差将每个绝对收益率与前一个相乘,因此单次大幅跳跃对其影响很小。两条线之间的差距即为跳跃带来的方差。realized_vol 仅覆盖这一分钟,未经年化。
步骤 3
ret_autocorr_lag1 为负,但仅看方向,价格变动倾向于延续。下跌之后,下一笔成交下跌的比例为 50% ,上涨的比例为 8%。方向的相关系数为+0.33.
相关系数按每次变动的幅度加权。在 50 笔最大的变动中(幅度均在 0.992 bps 及以上), 22 笔在下一笔成交时反转, 2 笔延续,其余之后价格未变。这些变动贡献了 80% 的协方差。
trendiness 为净变动占价格总移动路程的比例,此处为 0.09 。
步骤 4
Binance BTC-USDT永续合约,5分钟K线,2025年5月1日至31日,取自免费预览。
各滞后阶数的自相关(小时K线).
5月份每小时已实现波动率与每小时收益率的自相关。波动率在一天后与自身的相关性仍有0.17,而收益率在所有滞后阶数上均保持在±0.08以内。
近期波动率能预测下一小时的波动率,近期收益率却无法预测下一小时的收益率。
延迟15分钟至11:30 UTC每5分钟自动更新
realized_vol 为区间内逐笔成交对数收益率平方和的平方根。该值未经年化:需按一年内的区间数量进行换算。
bipower_variation 用于估计方差中的连续部分。 jump_ratio 为来自跳跃的方差占比:接近1时,表示该K线的大部分波动来自一次大幅变动。
ret_autocorr_lag1 为K线内逐笔成交收益率的1阶自相关:为负值表示价格变动倾向于反转。 trendiness 为净收益绝对值除以各笔收益绝对值之和,等于1表示价格仅朝单一方向变动。
从零讲解,详见 从第一性原理理解市场(我们的互动课程):
Does price tend to continue or reverse? This is the most consequential question for any directional strategy. Rather than inferring the answer from backtests of momentum strategies (which conflate the signal with execution, risk management, and survivorship), you can measure it directly from the return series.
The autocorrelation of returns at lag 1 is the most direct measure of short-horizon momentum or mean reversion. Lo & MacKinlay (1988) documented significant positive weekly return autocorrelation in US equities — evidence against the random walk hypothesis and the foundation for contrarian and momentum strategies.
At the microstructure level, return autocorrelation has a different character. Roll (1984) showed that the bid-ask bounce mechanically induces negative first-order autocorrelation in trade-to-trade returns: a buy at the ask is followed by either another buy (no price change) or a sell at the bid (negative return), creating a systematic negative serial correlation equal to the squared half-spread.
We compute lag-1 autocorrelation per interval from trade-to-trade log returns. The interpretation:
This ratio measures the efficiency of price movement — how much of the total distance traveled was "useful" (in the direction of the net move). It's related to the variance ratio test (Lo & MacKinlay, 1988) but operates on a single bar rather than across multiple horizons.
The two metrics together provide a richer regime characterization than either alone:
| Autocorrelation | Trendiness | Regime | Strategy Implication | | --------------- | ---------- | -------------------------- | -------------------------------------------------------------- | | High positive | High | Sustained directional flow | Trend-following profitable | | Low/negative | Low | Choppy oscillation | Mean-reversion or market-neutral | | Low | High | Gap/jump regime | Price jumped rather than drifted — single large displacement | | High positive | Low | Oscillating drift | Momentum in micro-returns but frequent reversals — noisy trend |
This characterization captures within-bar price dynamics that OHLC completely discards. A bar with identical OHLC values can be a clean trend (high autocorrelation, high trendiness) or a choppy fight that happened to close at the high (low autocorrelation, moderate trendiness). The distinction matters for everything from volatility estimation to strategy selection.
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 returns --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.
收益率与波动率 ,API文档中的说明:端点与参数 →