Yang-Zhang Volatility
Yang-Zhang volatility.
What it measures
The Yang-Zhang (2000) estimator: a weighted combination of overnight, open-to-close, and Rogers-Satchell terms. It is drift-independent and robust to opening jumps, making it the most complete of the classical range-based estimators. In 24/7 crypto markets the "overnight" term is less central, but the drift-independence still matters in trending tape.
References: Yang-Zhang 2000.
Point-in-time, leak-free
Like every QUANT_API feature, volatility.yang_zhang is computed point-in-time: each value uses only data that had actually arrived at the timestamp you query — live or historical. No restatements, no backfills that quietly rewrite the past, no look-ahead. The value your backtest sees at a given stamp is the value the live API would have returned at that stamp. How we enforce this is documented on the methodology page.
Windows & transforms
The signal is computed over rolling windows; each window can be served raw or through a transform (z-score, percentile rank, delta…). Which windows and transforms you can query depends on your plan — the signal itself supports:
Plan & access
volatility.yang_zhang unlocks on the Quant plan ($2,500/mo) and every plan above it. Every new account starts with a 14-day free trial of the Signal plan — no card required. The trial covers Signal-plan features, so you can evaluate the API end-to-end before upgrading to Quant.
Example call
Resolve the latest value for BTC (5m window, zscore transform — both available on the Quant plan):
curl -G https://api.quant-api.dev/v1/features/live \
-H "Authorization: Bearer fk_live_<your_key>" \
--data-urlencode "asset=BTC" \
--data-urlencode "features=volatility.yang_zhang@5m:zscore"Same key works on /v1/features/historical for point-in-time backtesting — see the API docs.