1. Gamma Exposure - GEX

Historical GEX Data API

Query gamma exposure by strike at any minute since January 2017. Same response shape as the live /v1/exposure/gex endpoint - just add an at= timestamp to replay GEX, gamma flip, call/put walls, and dealer hedging from any historical moment.

HISTORICAL
SPY coverage
2017-01-03 → 2026-12-03
Granularity
1 minute
Dataset Size
80B+ option rows
Format
JSON (REST)
New to GEX? What is gamma exposure? covers the formula and dealer hedging mechanics. For backtest patterns: backtesting GEX-regime strategies.

Endpoint

GET /v1/exposure/gex/{symbol}?at=...
Host: historical.flashalpha.com Auth required (X-Api-Key) Rate Limited: Yes Plan: Alpha+

Parameters

NameInTypeRequiredDefaultDescription
symbolpathstringrequired-Underlying symbol (e.g. SPY)
atquerydatetimerequired-As-of timestamp. yyyy-MM-ddTHH:mm:ss for minute resolution, or yyyy-MM-dd (resolves to 15:55 ET, the last minute before settlement, so same-day contracts keep live greeks). Treated as ET wall-clock. Invalid values return 400 invalid_at.
expirationquerydateall expiriesFilter to a single expiry (yyyy-MM-dd). Invalid values return 400 invalid_expiration.
min_oiqueryinteger0Minimum open interest threshold. Strikes whose combined call and put open interest is below this value are left out; 0 or a negative value keeps every strike. Non-numeric values return a 400 problem-details body.

Request

curl -H "X-Api-Key: YOUR_API_KEY" \
  "https://historical.flashalpha.com/v1/exposure/gex/SPY?at=2020-03-16T15:30:00"
import httpx, pandas as pd
from tqdm import tqdm

# Replay net GEX at 15:30 ET for every trading day in 2024
dates = pd.bdate_range("2024-01-02", "2024-12-31")
rows  = []
for d in tqdm(dates):
    at = d.strftime("%Y-%m-%dT15:30:00")
    r  = httpx.get(
        f"https://historical.flashalpha.com/v1/exposure/gex/SPY?at={at}",
        headers={"X-Api-Key": "YOUR_API_KEY"}, timeout=10
    )
    if r.status_code == 200:
        j = r.json()
        rows.append({"date": d, "net_gex": j["net_gex"], "flip": j["gamma_flip"]})
df = pd.DataFrame(rows)
const at = "2020-03-16T15:30:00";  // COVID crash, 15:30 ET
const r  = await fetch(
  `https://historical.flashalpha.com/v1/exposure/gex/SPY?at=${at}`,
  { headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
console.log(`Net GEX: $${j.net_gex.toLocaleString()}`);
console.log(`Regime:  ${j.net_gex_label}`);
console.log(`Flip:    ${j.gamma_flip}`);

Try it live

Replays archived data as of the at time you pick (ET wall-clock). Needs an Alpha plan API key.

GET

Response

Identical shape to the live /v1/exposure/gex endpoint, with two extra fields (as_of, as_of_requested) that echo the resolved timestamp.

{
  "symbol": "SPY",
  "underlying_price": 246.015,
  "as_of": "2020-03-16T15:30:00",
  "as_of_requested": "2020-03-16T15:30:00",
  "gamma_flip": null,
  "gamma_flip_status": "no_boundary",
  "net_gex": -2984331042,
  "net_gex_label": "negative",
  "strikes": [
    {
      "strike": 25,
      "call_gex": 4.7608,
      "put_gex": -19618.9,
      "net_gex": -19614.14,
      "call_oi": 1,
      "put_oi": 13920,
      "call_volume": 0,
      "put_volume": 0,
      "call_oi_change": null,
      "put_oi_change": null
    },
    {
      "strike": 30,
      "call_gex": 0,
      "put_gex": -5273.68,
      "net_gex": -5273.68,
      "call_oi": 0,
      "put_oi": 3928,
      "call_volume": 0,
      "put_volume": 0,
      "call_oi_change": null,
      "put_oi_change": null
    }
  ],
  "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": "2020-03-16T19:30:00Z",
    "equity_options_feed": "2020-03-16T19:30:00Z",
    "index_feed": null,
    "index_options_feed": null,
    "futures_feed": null,
    "futures_options_feed": null,
    "flow_feed": null,
    "oi_feed": "2020-03-13T20:00:00Z",
    "macro_feed": null
  }
}

Sending request…

See this endpoint on archived data

Send this exact request and the real response shows up here, right next to the example.

Granularity: spot, greeks, and per-strike GEX are minute-level; OI is EOD-stamped (one value per trade day, applied across all intraday at=). Per-strike volume and prior-day OI deltas are not stored at minute granularity.

Response Fields

FieldTypeDescription
symbolstringUnderlying symbol
underlying_pricenumberSpot price at as_of
as_ofstringMinute the data was resolved to (ET wall-clock)
as_of_requestedstringThe requested at, normalised to a full timestamp
gamma_flipnumberPrice where net GEX crosses zero; null when there is no crossing
gamma_flip_statusstringavailable, or why there is no flip (e.g. no_boundary)
net_gexnumberAggregate net gamma exposure
net_gex_labelstringSign of net_gex: positive or negative
strikesarrayPer-strike breakdown
strikes[].strikenumberStrike price
strikes[].call_gexnumberCall gamma exposure at this strike
strikes[].put_gexnumberPut gamma exposure at this strike
strikes[].net_gexnumberNet (call + put) gamma exposure
strikes[].call_oinumberCall open interest (EOD)
strikes[].put_oinumberPut open interest (EOD)
strikes[].call_volumenumberCall volume
strikes[].put_volumenumberPut volume
strikes[].call_oi_changenumberDay-over-day call open interest change; may be null
strikes[].put_oi_changenumberDay-over-day put open interest change; may be null
endpoint_version, data_as_of, archive_as_ofstring, objectResponse envelope, see Response envelope.

Errors

Status Error When
400invalid_atat is not yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss (ET).
400invalid_expirationexpiration not yyyy-MM-dd.
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.
403tier_restrictedYour plan is below Alpha. The body includes current_plan and required_plan.
404no_dataat is outside the coverage window, in a gap, on a weekend or in the future.
429Quota exceededDaily quota used up. Retry-After gives the seconds until the reset at 00:00 UTC. Rejected requests (including 403) count toward the quota.

The at Parameter

Every historical endpoint hangs off at - the as-of timestamp. Greeks and spot are stored at 1-minute resolution (9:30→16:00 ET) and resolved with a LATEST ON per-contract query, so any at within the trading day returns the contract state as of that minute. A date-only at=yyyy-MM-dd resolves to 15:55 ET on the exposure routes (/v1/exposure/*), dispersion and expected move, so same-day contracts keep live greeks, and to 16:00 ET (the close) on every other route. Open interest is EOD and applies to all intraday timestamps for that day.

What This Unlocks

  • Backtest GEX-regime strategies - pull regime labels at 15:30 ET for every day in your test window, join forward returns, measure edge. Walkthrough →
  • Replay specific events - what did dealer positioning look like at 15:30 ET on the COVID crash (2020-03-16, -12%)? GameStop squeeze (2021-01-27)? SVB collapse (2023-03-13)?
  • Train ML models on minute-level GEX features without lookahead bias - every at resolves with point-in-time semantics.
  • Validate GEX research from blogs / papers against the actual historical sequence.
  • Build dashboards that overlay historical gamma flip vs price for any day or window.

Coverage - Supported Tickers

Live coverage pulled from GET /v1/tickers. Additional symbols backfill on demand for Alpha customers (typically <48h).

SymbolFirst dateLast dateHealthy days Total days
AA 2026-06-02 2026-12-03 129 185
AAL 2018-01-02 2026-12-03 2,241 3,258
AAPL 2017-06-26 2026-12-03 2,367 3,448
ABBV 2026-06-02 2026-12-03 129 185
ABNB 2026-06-02 2026-12-03 129 185
AEP 2026-06-02 2026-12-03 129 185
AMC 2018-01-02 2026-12-03 2,200 3,258
AMD 2017-01-03 2026-12-03 2,493 3,622
AMGN 2026-06-02 2026-12-03 129 185
AMT 2026-06-02 2026-12-03 129 185

Why Historical GEX Is Hard to Find

Most GEX dashboards show live exposure - useful for today, useless for backtests. The few vendors who store history typically keep EOD aggregates, which collapse the intraday flip and ruin any signal that depends on knowing where dealers stood at 14:00 ET vs 15:30 ET. FlashAlpha's historical service stores minute-level greeks per contract, so the GEX you query at 14:00 on 2020-03-16 is computed from the actual greeks and spot at that minute - not interpolated, not stamped with the close. More on why this is rare →

Related reading

Ready to build with FlashAlpha?

Get your free API key and start pulling live options data in 60 seconds.

No credit card required Setup in 60 seconds Secure & reliable