- Live API Reference
- Exposure Analytics
- Exposure Term Structure
Exposure Term Structure API
Per-greek exposure aggregated by DTE bucket and also rolled up per expiry, returning in one call the same shape as four full-chain exposure requests, grouped by time.
Endpoint
X-Api-Key)
Rate Limited: Yes
Plan: Growth+
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
symbol |
path | string | required | - | Underlying symbol |
Request
curl -H "X-Api-Key: YOUR_API_KEY" \
"https://lab.flashalpha.com/v1/exposure/term-structure/SPY"import requests
resp = requests.get(
"https://lab.flashalpha.com/v1/exposure/term-structure/SPY",
headers={"X-Api-Key": "YOUR_API_KEY"}
)
resp.raise_for_status()
data = resp.json()
for b in data["by_dte_bucket"]:
print(f"{b['bucket']}: net GEX {b['net_gex']:,}")const resp = await fetch(
"https://lab.flashalpha.com/v1/exposure/term-structure/SPY",
{ headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
data.by_dte_bucket.forEach(b =>
console.log(b.bucket + ": net GEX " + b.net_gex.toLocaleString()));Try it live
Runs on live market data and uses 1 request from your daily quota.
Response
{
"symbol": "SPY",
"underlying_price": 760.44,
"as_of": "2026-10-30T13:45:40.6004367Z",
"by_dte_bucket": [
{
"bucket": "0-7d",
"dte_range": [
0,
7
],
"net_gex": -10477753345,
"net_dex": -22713047274,
"net_vex": 15441579457,
"net_chex": 1731587,
"contract_count": 1976
},
{
"bucket": "8-30d",
"dte_range": [
8,
30
],
"net_gex": -4935588122,
"net_dex": -22881415195,
"net_vex": -25050748583,
"net_chex": -296758.65,
"contract_count": 1358
}
],
"by_expiry": [
{
"expiration": "2026-10-30",
"dte": 0,
"is_opex": false,
"is_triple_witching": false,
"net_gex": -6946467804,
"net_dex": -11619600493,
"net_vex": 4637628323,
"net_chex": 1583661,
"pct_of_chain_gex": 40.31
},
{
"expiration": "2026-11-02",
"dte": 3,
"is_opex": false,
"is_triple_witching": false,
"net_gex": -913103281,
"net_dex": -2706357759,
"net_vex": 3840979092,
"net_chex": 89863.54,
"pct_of_chain_gex": 5.3
}
],
"gamma_concentration": {
"totals": {
"gross_gex_usd": 45028787760,
"net_gex_usd": -15496069787,
"call_gex_usd": 14766358987,
"put_gex_usd": -30262428773,
"contract_count": 11298
},
"by_expiry": [
{
"expiry": "2026-10-30",
"valuation_cutoff_at": "2026-10-30T20:00:00Z",
"last_trading_at": "2026-10-30T20:15:00Z",
"last_trading_status": "scheduled_regular_session",
"settlement_at": null,
"settlement_status": "unknown",
"calendar_days_to_expiry": 0,
"gross_share_pct": 28.0871,
"gross_gex_usd": 12647266923,
"net_gex_usd": -6946467804,
"call_gex_usd": 2850399560,
"put_gex_usd": -9796867363,
"contract_count": 162
},
{
"expiry": "2026-11-02",
"valuation_cutoff_at": "2026-11-02T21:00:00Z",
"last_trading_at": "2026-11-02T21:15:00Z",
"last_trading_status": "scheduled_regular_session",
"settlement_at": null,
"settlement_status": "unknown",
"calendar_days_to_expiry": 3,
"gross_share_pct": 3.8612,
"gross_gex_usd": 1738651487,
"net_gex_usd": -913103281,
"call_gex_usd": 412774103,
"put_gex_usd": -1325877384,
"contract_count": 218
}
],
"next_active_expiry": "2026-10-30",
"largest_gross_expiry": "2026-10-30",
"symbol": "SPY",
"underlying_price": 760.44,
"snapshot_id": "72a61d702608d1b89f77599bb2b0acd6478857d3901dc14a4640202e1f2ef7b2",
"generated_at": "2026-10-30T13:45:40.6004367Z",
"quote_at": "2026-10-30T13:45:40.511Z",
"greeks_oldest_at": "2026-10-30T13:42:31Z",
"greeks_newest_at": "2026-10-30T13:45:39Z",
"calculation_version": "gamma-context-v2",
"pricing_basis": "captured_cached_gamma_current_spot",
"data_status": "partial",
"reasons": [
{
"code": "expiry_clock_unverified",
"message": "Excluded 302 contract(s): expiry_clock_unverified.",
"contract_count": 302
},
{
"code": "gamma_unavailable",
"message": "Excluded 718 contract(s): gamma_unavailable.",
"contract_count": 718
}
],
"oi_as_of": null,
"oi_vintage_status": "unknown",
"eligible_contract_count": 11298,
"rejected_contract_count": 1020,
"observed_min_strike": 50,
"observed_max_strike": 1480,
"gex_unit": "usd_delta_notional_per_1pct_move",
"sign_convention": "calls_positive_puts_negative",
"analysis_type": "current_distribution"
},
"endpoint_version": "2026.09.30",
"data_as_of": {
"node": "fa5",
"equity_feed": "2026-10-30T13:45:40.511Z",
"equity_options_feed": "2026-10-30T13:45:40Z",
"index_feed": "2026-10-30T13:45:40.075Z",
"index_options_feed": "2026-10-30T13:45:37Z",
"futures_feed": "2026-10-30T13:45:28.31Z",
"futures_options_feed": "2026-10-30T13:45:27.486Z",
"flow_feed": "2026-10-30T13:45:00Z",
"oi_feed": "2026-10-29T20:00:00Z",
"macro_feed": "2026-10-29T21:00:20Z"
}
}Sending request…
See this endpoint on live data
Send this exact request and the real response shows up here, right next to the example.
Real response from the live API (2026-10-20 15:00 UTC), with lists shortened to three items. Download the full response (JSON).
Response Fields
| Field | Type | Description |
|---|---|---|
symbol | string | Underlying symbol |
underlying_price | number | Underlying price used for the calculation |
as_of | string | Timestamp of the data (ISO 8601, UTC) |
by_dte_bucket | array | By DTE bucket |
by_dte_bucket[].bucket | string | Bucket name. Buckets are 0-7d / 8-30d / 31-60d / 61-180d / 180d+. |
by_dte_bucket[].dte_range | array of number | Inclusive [lower, upper] DTE bounds (final bucket carries int.MaxValue as the upper bound). |
by_dte_bucket[].net_gex | number | Net gamma exposure (USD), summed over every contract whose DTE falls in the bucket |
by_dte_bucket[].net_dex | number | Net delta exposure (USD), summed over every contract whose DTE falls in the bucket |
by_dte_bucket[].net_vex | number | Net vanna exposure (USD), summed over every contract whose DTE falls in the bucket |
by_dte_bucket[].net_chex | number | Net charm exposure (USD), summed over every contract whose DTE falls in the bucket |
by_dte_bucket[].contract_count | number | Number of contracts feeding the bucket. |
by_expiry[] | array | One row per expiry, ordered ascending. is_opex / is_triple_witching use the holiday-adjusted rule. |
by_expiry[].expiration | string | Expiration date (yyyy-MM-dd) |
by_expiry[].dte | number | Days to expiration |
by_expiry[].is_opex | boolean | By expiry: is OPEX |
by_expiry[].is_triple_witching | boolean | By expiry: is triple witching |
by_expiry[].net_gex | number | Net gamma exposure (USD) |
by_expiry[].net_dex | number | Net delta exposure (USD) |
by_expiry[].net_vex | number | Net vanna exposure (USD) |
by_expiry[].net_chex | number | Net charm exposure (USD) |
by_expiry[].pct_of_chain_gex | number | This expiry's |net_gex| as a share of Σ |net_gex| across all expiries (0-100). A legacy net-based share, not the gross share in gamma_concentration. |
gamma_concentration | object | SPY/QQQ: gross and net gamma distribution of the same captured chain (totals, by_expiry[] with gross_share_pct, next_active_expiry, largest_gross_expiry) plus snapshot_id, pricing_basis, data_status and reasons. Other symbols return the block with data_status: "unavailable" and reason unsupported_symbol. Definitions match Expiry Impact. |
endpoint_version, data_as_of | string, object | Response envelope, see Response envelope. |
Fields of gamma_concentration
| Field | Type | Description |
|---|---|---|
gamma_concentration.totals | object | Gamma concentration: totals |
gamma_concentration.totals.gross_gex_usd | number | Totals: gross GEX (USD) |
gamma_concentration.totals.net_gex_usd | number | Totals: net GEX (USD) |
gamma_concentration.totals.call_gex_usd | number | Totals: call GEX (USD) |
gamma_concentration.totals.put_gex_usd | number | Totals: put GEX (USD) |
gamma_concentration.totals.contract_count | number | Contract count |
gamma_concentration.by_expiry[].expiry | string | Expiration date (yyyy-MM-dd) |
gamma_concentration.by_expiry[].valuation_cutoff_at | string | By expiry: valuation cutoff timestamp (UTC) |
gamma_concentration.by_expiry[].last_trading_at | string | By expiry: last trading timestamp (UTC) |
gamma_concentration.by_expiry[].last_trading_status | string | By expiry: last trading status |
gamma_concentration.by_expiry[].settlement_at | string | null | By expiry: settlement timestamp (UTC) |
gamma_concentration.by_expiry[].settlement_status | string | By expiry: settlement status |
gamma_concentration.by_expiry[].calendar_days_to_expiry | number | By expiry: calendar days to expiry |
gamma_concentration.by_expiry[].gross_share_pct | number | By expiry: gross share (%) |
gamma_concentration.by_expiry[].gross_gex_usd | number | By expiry: gross GEX (USD) |
gamma_concentration.by_expiry[].net_gex_usd | number | By expiry: net GEX (USD) |
gamma_concentration.by_expiry[].call_gex_usd | number | By expiry: call GEX (USD) |
gamma_concentration.by_expiry[].put_gex_usd | number | By expiry: put GEX (USD) |
gamma_concentration.by_expiry[].contract_count | number | Contract count |
gamma_concentration.next_active_expiry | string | Gamma concentration: next active expiry |
gamma_concentration.largest_gross_expiry | string | Gamma concentration: largest gross expiry |
gamma_concentration.symbol | string | Underlying symbol |
gamma_concentration.underlying_price | number | Underlying price used for the calculation |
gamma_concentration.snapshot_id | string | Gamma concentration: snapshot ID |
gamma_concentration.generated_at | string | Gamma concentration: generated timestamp (UTC) |
gamma_concentration.quote_at | string | Gamma concentration: quote timestamp (UTC) |
gamma_concentration.greeks_oldest_at | string | Gamma concentration: greeks oldest timestamp (UTC) |
gamma_concentration.greeks_newest_at | string | Gamma concentration: greeks newest timestamp (UTC) |
gamma_concentration.calculation_version | string | Gamma concentration: calculation version |
gamma_concentration.pricing_basis | string | Gamma concentration: pricing basis |
gamma_concentration.data_status | string | Gamma concentration: data status |
gamma_concentration.reasons | array | Gamma concentration: reasons |
gamma_concentration.reasons[].code | string | Reasons: code |
gamma_concentration.reasons[].message | string | Human-readable message |
gamma_concentration.reasons[].contract_count | number | null | Contract count |
gamma_concentration.oi_as_of | string | null | Gamma concentration: OI as of |
gamma_concentration.oi_vintage_status | string | Gamma concentration: OI vintage status |
gamma_concentration.eligible_contract_count | number | Gamma concentration: eligible contract count |
gamma_concentration.rejected_contract_count | number | Gamma concentration: rejected contract count |
gamma_concentration.observed_min_strike | number | Gamma concentration: observed min strike |
gamma_concentration.observed_max_strike | number | Gamma concentration: observed max strike |
gamma_concentration.gex_unit | string | Gamma concentration: GEX unit |
gamma_concentration.sign_convention | string | Gamma concentration: sign convention |
gamma_concentration.analysis_type | string | Gamma concentration: analysis type |
gamma_concentration.by_expiry | array | By expiry |
Errors
| Status | Error | When |
|---|---|---|
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 Growth. The body includes current_plan and required_plan. |
404 | symbol_not_found | No data for the symbol (unknown symbol, or no live data). Outside US market hours the message also says the market is closed. |
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. |
About
The term-structure endpoint slices a symbol's options chain by time rather than by strike, aggregating GEX, DEX, VEX and CHEX into standard DTE buckets and rolling the same greeks up per individual expiry. A single call returns what would otherwise require four separate full-chain exposure requests, already grouped along the time axis.
Buckets that match no contracts are omitted rather than emitted as zero rows, and pct_of_chain_gex falls back to 0 for every row when the chain's total |net_gex| is zero (a safe-divide guard). The per-expiry rollup carries OPEX and triple-witching flags so you can spot where the chain's gamma concentration sits in time.
For SPY and QQQ the response also carries gamma_concentration: gross gamma shares by expiry, computed with the same inputs as Expiry Impact and Strike Dependency. Gross shares answer how much gamma each expiry holds; pct_of_chain_gex keeps its legacy net-based definition. For QQQ, values come from the raw-quote common-anchor repricer QQQ GEX uses, so the legacy arrays can be empty while gamma_concentration is populated.
Common Use Cases
- Plot the exposure term-structure curve - the per-DTE-bucket rows draw a gamma curve across the chain so you can see whether positioning is front- or back-loaded in time
- Find the dominant expiry -
pct_of_chain_gexranks each expiry's share of total chain gamma to pinpoint where dealer concentration sits - Separate pinning from structural positioning - isolate the near-dated 0-7d buckets that drive expiry pinning from longer-dated, slower-moving exposure
- Flag event expiries in time - the per-expiry OPEX and triple-witching flags mark where gamma concentration coincides with scheduled unwinds
- Handle sparse buckets safely - empty buckets are omitted rather than zero-filled and
pct_of_chain_gexsafe-divides to0, so charts stay clean on thin chains - Pair with skew and VRP across tenors - read the gamma curve alongside skew term structure and VRP history to align positioning with the vol term structure
Related
Research
gamma_concentration was replayed on every 2022-2025 SPY and QQQ session. Its front-expiry share matched expiry impact on every snapshot, and for SPY concentration across expiries carried some information beyond the expiring share.
- Does expiring gamma move the market? - results and method
- Are covered calls worth it? -
gamma_concentration.totals.net_gex_usdas a covered-call filter across six deltas and five expiries - Research pack
trader-context-spy-qqq-2022-2025-v2-34105d743fac- data, audit and reproduction (Alpha)
Related reading
- GEX/DEX/VEX/CHEX: an 8-year backtest vs VIX - what the exposure greeks predict across the term structure
Complementary endpoints
- Gamma Exposure (GEX) - the per-strike gamma sheet behind each bucket's totals
- Exposure Sheet - the full per-strike greek sheet aggregated here by expiry
- Skew Term Structure - how implied skew evolves across the same tenors
- VRP History - realized-vs-implied premium to frame the term structure
Unlock DEX, VEX and CHEX with Basic
Everything in Free, plus:
- DEX, VEX and CHEX exposure
- Full max pain
- ETF & index symbols SPY, QQQ, SPX, VIX
Go full-chain with Growth
Everything in Basic, plus:
- Full-chain GEX Every expiration
- 0DTE analytics
- Exposure summary & AI narrative
- CME futures & live screener
Add history and vol surfaces with Alpha
Everything in Growth, plus:
- Historical API replay Since 2017
- SVI vol surfaces
- VRP analytics
- Greeks surfaces Vanna, charm, volga and speed grids