- Historical Replay
- Volatility Analytics
- VRP Analytics
Historical VRP Data API
Volatility Risk Premium with date-bounded percentile and z-score references. Historical queries use reference rows with SnapshotDate < at.Date. Replay RV uses prior closes, while those reference rows retain their live nightly RV convention; see the limitation below. Same shape as live /v1/vrp.
Endpoint
historical.flashalpha.com
Auth required (X-Api-Key)
Rate Limited: Yes
Plan: Alpha+
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
symbol | path | string | required | - | Underlying symbol (e.g. SPY) |
at | query | datetime | required | - | As-of time, ET wall-clock: yyyy-MM-ddTHH:mm:ss for a minute, or yyyy-MM-dd for that trading day |
Request
curl -H "X-Api-Key: YOUR_API_KEY" \
"https://historical.flashalpha.com/v1/vrp/SPY?at=2026-03-05T15:30:00"import requests
resp = requests.get(
"https://historical.flashalpha.com/v1/vrp/SPY",
headers={"X-Api-Key": "YOUR_API_KEY"},
params={"at": "2026-03-05T15:30:00"}
)
resp.raise_for_status()
data = resp.json()
print(data["vrp"]["vrp_20d"], data["regime"]["vrp_regime"])const resp = await fetch(
"https://historical.flashalpha.com/v1/vrp/SPY?at=2026-03-05T15:30:00",
{ headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log(data.vrp.vrp_20d, data.regime.vrp_regime);Try it live
Replays archived data as of the at time you pick (ET wall-clock). Needs an Alpha plan API key.
Response
{
"symbol": "SPY",
"underlying_price": 679.46,
"as_of": "2026-03-05T15:30:00",
"market_open": false,
"vrp": {
"atm_iv": 21.92,
"rv_5d": 9.82,
"rv_10d": 11.33,
"rv_20d": 13.2,
"rv_30d": 11.88,
"vrp_5d": 12.1,
"vrp_10d": 10.59,
"vrp_20d": 8.72,
"vrp_30d": 10.04,
"z_score": 2.57,
"percentile": 100,
"history_days": 73
},
"variance_risk_premium": 0.030625,
"convexity_premium": 2.91,
"fair_vol": 24.83,
"directional": {
"put_wing_iv_25d": 26.07,
"call_wing_iv_25d": 13.67,
"downside_rv_20d": 7.77,
"upside_rv_20d": 8.72,
"downside_vrp": 18.3,
"upside_vrp": 4.95
},
"term_vrp": [
{
"dte": 7,
"iv": 21.18,
"rv": 11.19,
"vrp": 9.99
},
{
"dte": 14,
"iv": 20.81,
"rv": 11.82,
"vrp": 8.99
}
],
"gex_conditioned": {
"regime": "negative_gamma",
"harvest_score": 0.29,
"interpretation": "Dealers short gamma - rich premium may reflect genuine tail risk."
},
"vanna_conditioned": {
"outlook": "Mixed - vol compression fading",
"interpretation": "Positive vanna but spot below flip: compression weakening. Reduced harvest confidence."
},
"regime": {
"gamma": "negative_gamma",
"vrp_regime": "toxic_short_vol",
"net_gex": -10223279462,
"gamma_flip": 689.0441,
"gamma_flip_status": "available"
},
"strategy_scores": {
"short_put_spread": 77,
"short_strangle": 69,
"iron_condor": 70,
"calendar_spread": 45
},
"net_harvest_score": 60,
"dealer_flow_risk": 42,
"warnings": [
"negative_gamma",
"extreme_vrp"
],
"macro": {
"vix": 21.15,
"vix_3m": 22.29,
"vix_term_slope": 1.0539,
"dgs10": 4.09,
"hy_spread": 2.97
},
"endpoint_version": "2026.09.30",
"data_as_of": {
"node": "f3",
"equity_feed": null,
"equity_options_feed": null,
"index_feed": null,
"index_options_feed": null,
"futures_feed": null,
"futures_options_feed": null,
"flow_feed": null,
"oi_feed": null,
"macro_feed": null
},
"archive_as_of": {
"node": "f3",
"equity_feed": "2026-03-05T20:30:00Z",
"equity_options_feed": "2026-03-05T19:59:00Z",
"index_feed": null,
"index_options_feed": null,
"futures_feed": null,
"futures_options_feed": null,
"flow_feed": null,
"oi_feed": "2026-03-04T21:00:00Z",
"macro_feed": "2026-03-04T21:00:00Z"
}
}Sending request…
See this endpoint on archived data
Send this exact request and the real response shows up here, right next to the example.
Daily-input convention: replay RV and macro use dates strictly before the requested ET date, even at or after close. Percentile and z-score reference rows are also restricted to earlier dates, but remain live nightly observations calculated with same-day RV. Those ranks compare against the live nightly distribution, not a uniformly recomputed prior-settled replay distribution. Moving the history cutoff back another day does not recalculate its stored values. See daily-input timing.
Response Fields
| Field | Type | Description |
|---|---|---|
symbol | string | Underlying symbol |
underlying_price | number | Spot price at as_of |
as_of | string | Minute the data was resolved to (ET wall-clock) |
market_open | boolean | Whether the market was open at as_of |
vrp.atm_iv | number | ATM implied volatility (%) |
vrp.rv_5d .. rv_30d | number | Realized vol over 5, 10, 20 and 30 days (%) |
vrp.vrp_5d .. vrp_30d | number | IV minus RV per window (vol points) |
vrp.z_score | number | VRP z-score against earlier dates |
vrp.percentile | number | VRP percentile (0-100); null with too little history |
vrp.history_days | number | Days of VRP history behind the z-score and percentile |
variance_risk_premium | number | Variance risk premium as a decimal |
convexity_premium | number | Convexity premium (vol points) |
fair_vol | number | Model fair volatility (%) |
directional | object | 25-delta put / call wing IV, downside / upside RV and VRP |
term_vrp[] | array | dte, iv, rv, vrp per tenor |
gex_conditioned | object | regime, harvest_score (0-1), interpretation |
vanna_conditioned | object | outlook and interpretation |
regime | object | gamma, vrp_regime, net_gex, gamma_flip, gamma_flip_status |
strategy_scores | object | 0-100 scores for short_put_spread, short_strangle, iron_condor, calendar_spread |
net_harvest_score | number | Overall premium-harvest score (0-100) |
dealer_flow_risk | number | Dealer flow risk score (0-100) |
warnings[] | array | Risk flags, e.g. negative_gamma |
macro | object | vix, vix_3m, vix_term_slope, dgs10, hy_spread |
vrp | object | VRP |
vrp.rv_10d | number | VRP: RV 10d |
vrp.rv_20d | number | VRP: RV 20d |
vrp.vrp_10d | number | VRP: VRP 10d |
vrp.vrp_20d | number | VRP: VRP 20d |
directional.put_wing_iv_25d | number | 25-delta put IV (%) |
directional.call_wing_iv_25d | number | 25-delta call IV (%) |
directional.downside_rv_20d | number | RV from negative returns only (downside semivariance) |
directional.upside_rv_20d | number | RV from positive returns only |
directional.downside_vrp | number | Put-wing IV minus downside RV |
directional.upside_vrp | number | Call-wing IV minus upside RV |
term_vrp[].dte | number | Days to expiry |
term_vrp[].iv | number | ATM IV for this tenor |
term_vrp[].rv | number | Term-matched realized vol |
term_vrp[].vrp | number | VRP spread for this tenor |
gex_conditioned.harvest_score | number | 0-1 harvestability score (higher = safer to sell premium) |
gex_conditioned.interpretation | string | Human-readable regime interpretation |
gex_conditioned.regime | string | gamma, vrp_regime, net_gex, gamma_flip, gamma_flip_status |
vanna_conditioned.outlook | string | Vol compression/expansion outlook |
vanna_conditioned.interpretation | string | How vanna flows affect premium selling |
regime.gamma | string | positive_gamma, negative_gamma, or unknown when the flip is unavailable. |
regime.vrp_regime | string | harvestable, event_only, toxic_short_vol, cheap_convexity, or surface_distorted |
regime.net_gex | number | Net gamma exposure ($) |
regime.gamma_flip | number | Published underlying-price boundary of aggregate repriced GEX; null when withheld. |
regime.gamma_flip_status | string | available when the level is certified. A numeric gamma_flip with any of sensitive_root, uncertain_root_path, quality_budget, uncertain_gamma_variance, insufficient_local_coverage or insufficient_quote_quality is an unverified level: the root exists but failed that publication gate, and regime is unknown. Any other status means no supportable root and gamma_flip is null. |
strategy_scores.short_put_spread | number | Short put spread suitability; null without a published gamma flip. |
strategy_scores.short_strangle | number | Short strangle suitability; null without a published gamma flip. |
strategy_scores.iron_condor | number | Iron condor suitability; null without a published gamma flip. |
strategy_scores.calendar_spread | number | Calendar spread suitability |
macro.vix | number | VIX spot |
macro.vix_3m | number | VIX3M (3-month VIX) |
macro.vix_term_slope | number | VIX3M/VIX ratio (>1 = contango, <1 = backwardation) |
macro.dgs10 | number | 10-Year Treasury yield |
macro.hy_spread | number | ICE BofA High Yield OAS (credit stress indicator) |
endpoint_version, data_as_of, archive_as_of | string, object | Response envelope, see Response envelope. |
Errors
| Status | Error | When |
|---|---|---|
400 | invalid_at | at is not yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss (ET). |
400 | - | A query value has the wrong type, or a required value is missing. The body is an RFC 7807 problem-details object with errors.<param>. |
401 | - | Missing or invalid X-Api-Key. The body is empty; check the status code before parsing JSON. |
403 | tier_restricted | Your plan is below Alpha. The body includes current_plan and required_plan. |
404 | symbol_not_found | No archived data for this symbol at at. |
429 | Quota exceeded | Daily quota used up. Retry-After gives the seconds until the reset at 00:00 UTC. Rejected requests (including 403) count toward the quota. |
What This Unlocks
- Compare replay VRP with earlier nightly observations - use
percentileandz_scorewith the RV-convention limitation above. - Validate "VRP > X percentile" entry rules using
vrp_5d/vrp_20dagainst the actual historical sequence. - Replay regime-conditioned VRP -
gex_conditioned.harvest_scoreacross positive vs negative gamma for strategy scoring. - Score structures in replay -
strategy_scores(short strangle, iron condor, calendar) use replay-calculated VRP and the documented reference-history convention. - Condition on macro - join
convexity_premiumandfair_volagainst the as-ofmacro.vix_term_slopeto isolate VRP that survives a VIX-term filter.
Related Historical Endpoints
- Historical sell-window - sell or skip per expiry for any past session
- Historical Volatility - IV vs HV ladder
- Historical IV Surface
- Historical Stock Summary
- VRP (live) - the live version of this endpoint
Related reading
- Complete guide to quant options backtesting - using VRP in a backtest workflow.
- Replaying GEX, VRP & dealer positioning - reconstruct regime-conditioned VRP across past sessions.