Session replay¶
Replay is enabled for an explicitly configured set of symbols after session QA.
It gives you the calculated summary and netstat results for each stored Greeks run,
including netstat's price transitions. Both run stores are included; two runs at the same
time remain separate frames with different run_id values.
curl -s 'https://api.gammaedge.us/v1/replay/session/SPXP/frames' \
-H "X-API-Key: $GAMMAEDGE_API_KEY"
curl -s 'https://api.gammaedge.us/v1/replay/session/SPXP/run/12:00' \
-H "X-API-Key: $GAMMAEDGE_API_KEY"
The API serves one session. At 09:30 ET on a trading day it switches to the new session; after the close, overnight, on weekends and on holidays it retains the last completed session until the next trading day's 09:30 ET open. This rule applies to every symbol, including SPX, SPXA, SPXP and VIX. The first premarket run does not change the served session. Runs for GTH symbols include the overnight period starting at 20:15 ET on the calendar evening before that session.
/frames returns every materialized stored run in time order. /run/12:00 returns one
frame: the latest run that started at or before 12:00:00 ET on the served session's date.
If no earlier run exists, it returns HTTP 404 (7000001). Match a volume slice to a frame
whose run_started_at is at or before the slice, so you do not use a later calculation.
These routes accept no query parameters. date, session, eval_price and DTE parameters
return HTTP 400 (7000000). Each frame uses the nearest expiry's floored DTE band for
both summary and netstat. inputs.min_dte and inputs.max_dte identify the band to use
when comparing against the live routes. A frame keeps the stored run's spot, volatility,
open interest and expiry context. Transition calculations use the same configured rate
provider and validation as live. inputs.risk_free_rate records the rate captured before
materialization. Summary technicals (sma50, ema21) use the captured daily-history
indicators, or remain null if that history was unavailable. Captured rates and indicators
are reused across retries and calculation-version rebuilds. For older files, reconstructed
inputs cannot prove the exact response delivered in the past without the original live
response and input capture.
Frames contain results and context only. There are no option-chain rows or strike tables.
method_version is an opaque token: compare it for equality; do not parse it.
When minus_gex > plus_gex, both values remain as calculated, structure_normal is false,
and pos_trans, zero_gex and neg_trans are null. A frame never carries forward a level
from an earlier run. Collapsed expiries keep the live routes' nulls and reasons; a transition
search cannot run on a collapsed expiry.
run_count counts runs in the whole session, even on /run. missing_runs lists store
snapshots that have no file for this symbol, based on the per-day manifest of observed
upstream snapshots in each allocated store, including a store or symbol with no file.
It does not invent a frame when a
file is absent. A stored file whose analytics fail still has a frame, with summary_error
or netstat_error explaining the unavailable result. A successful live calculation
with no transition keeps its null values and is cached as a completed result.
Results are prepared in the background as stored files arrive. A session still being
prepared returns HTTP 503 (7000007); retry after publication. Reading /frames or /run
never starts a calculation. This also keeps repeated reads independent of full-session
calculation time.
Example response (illustrative values):
{
"status": "completed",
"ticker": "SPX",
"session_date": "2026-07-21",
"session_status": "live",
"method_version": "933617a9e812de7024efb6cf57f915563e280ab28d8db5ba5dc6d698bc96e6bd",
"generated_at": "2026-07-21T14:35:10-04:00",
"run_count": 1,
"missing_runs": [],
"frames": [
{
"run_id": "greeks_frequent:20260721183500:42e8d6ab-27f9-4ef4-a419-bc44970814ba",
"store": "greeks_frequent",
"run_started_at": "2026-07-21T14:35:00-04:00",
"written_at": "2026-07-21T14:35:09-04:00",
"inputs": {
"eval_price": 6388.25,
"min_dte": 0,
"max_dte": 0,
"expiries": [
{
"expiry_date": "2026-07-21",
"dte": 0.059
}
],
"risk_free_rate": 0.04
},
"summary": {
"status": "completed",
"ticker": "SPX",
"generated_at": "2026-07-21T14:35:00-04:00",
"data_state": "interim",
"eod_pipeline_completed_at": null,
"eval_price": 6388.25,
"eval_price_is_default": true,
"spot_price": 6388.25,
"spot_last_updated": "2026-07-21T14:35:00-04:00",
"spot_basis": "feed",
"spot_basis_time": "2026-07-21T14:35:00-04:00",
"session_date": "2026-07-21",
"session_status": "live",
"oi_date": "2026-07-20",
"oi_loaded_at": "2026-07-21T06:31:02-04:00",
"expiry_range": {
"min_dte": 0,
"max_dte": 0,
"expiry_date_from": "2026-07-21",
"expiry_date_to": "2026-07-21"
},
"total_oi": 7845120,
"coi": 6400.0,
"poi": 6300.0,
"plus_gex": 6425.0,
"minus_gex": 6325.0,
"gex_ratio": 1.18,
"structure_normal": true,
"pos_trans": 6440.0,
"zero_gex": 6375.0,
"neg_trans": 6310.0,
"cotmc": 6412.0,
"citmp": 6394.0,
"cotmp": 6368.0,
"citmc": 6346.0,
"sma50": null,
"ema21": null,
"null_reasons": {},
"null_reason": null,
"message": null,
"next_expiry": null,
"expected_move": {
"expiry": "2026-07-21",
"dte": 0.059028,
"atm_strike": 6390.0,
"pct": 0.1837,
"points": 11.7352,
"lower": 6376.5148,
"upper": 6399.9852,
"lower_strike": 6375.0,
"upper_strike": 6400.0,
"vol_model": "sticky_strike"
},
"expected_move_null_reason": null,
"error_message": null,
"error_code": null,
"metadata": null
},
"netstat": {
"status": "completed",
"ticker": "SPX",
"generated_at": "2026-07-21T14:35:00-04:00",
"data_state": "interim",
"eod_pipeline_completed_at": null,
"eval_price": 6388.25,
"eval_price_is_default": true,
"spot_last_updated": "2026-07-21T14:35:00-04:00",
"spot_basis": "feed",
"spot_basis_time": "2026-07-21T14:35:00-04:00",
"session_date": "2026-07-21",
"session_status": "live",
"oi_date": "2026-07-20",
"oi_loaded_at": "2026-07-21T06:31:02-04:00",
"expiry_range": {
"min_dte": 0,
"max_dte": 0,
"expiry_date_from": "2026-07-21",
"expiry_date_to": "2026-07-21"
},
"expiry_oi": 998261,
"transitions_available": true,
"greeks": [
{
"greek": "net_delta",
"lhp": {
"strike": 6350.0,
"dte": 0,
"label": "ITMC",
"integral": 1064182.0,
"expected_transition": {
"from": "ITMC",
"to": "OTMP",
"price": 6330.0,
"price_pct_from_spot": -0.91
}
},
"rhp": {
"strike": 6425.0,
"dte": 0,
"label": "OTMC",
"integral": -512000.0,
"expected_transition": null
}
},
{
"greek": "net_gamma",
"lhp": {
"strike": 6375.0,
"dte": 0,
"label": "OTMP",
"integral": -5947.0,
"expected_transition": null
},
"rhp": {
"strike": 6400.0,
"dte": 0,
"label": "OTMC",
"integral": -6357.0,
"expected_transition": null
}
},
{
"greek": "net_charm",
"lhp": {
"strike": 6300.0,
"dte": 0,
"label": "ITMC",
"integral": -51230000.0,
"expected_transition": null
},
"rhp": {
"strike": 6450.0,
"dte": 0,
"label": "ITMP",
"integral": -35190000.0,
"expected_transition": null
}
},
{
"greek": "net_vanna",
"lhp": {
"strike": 6325.0,
"dte": 0,
"label": "OTMP",
"integral": 801220.0,
"expected_transition": null
},
"rhp": {
"strike": 6475.0,
"dte": 0,
"label": "OTMC",
"integral": 906334.0,
"expected_transition": null
}
}
],
"totals": {
"net_delta": 552182.0,
"net_gamma": -12304.0,
"net_charm": -86420000.0,
"net_vanna": 1707554.0
},
"net_gex": -12.304,
"net_gex_unit": "K",
"null_reason": null,
"message": null,
"next_expiry": null,
"eval_time_used": null,
"time_to_expiry_days": null,
"eval_time_note": null,
"error_message": null,
"error_code": null,
"metadata": null
},
"summary_error": null,
"netstat_error": null
}
]
}