Exposure Term Structure API - Greek Exposure by DTE Bucket and Expiry | FlashAlpha
  1. 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

GET /v1/exposure/term-structure/{symbol}
Auth required (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.

GET

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
symbolstringUnderlying symbol
underlying_pricenumberUnderlying price used for the calculation
as_ofstringTimestamp of the data (ISO 8601, UTC)
by_dte_bucketarrayBy DTE bucket
by_dte_bucket[].bucketstringBucket name. Buckets are 0-7d / 8-30d / 31-60d / 61-180d / 180d+.
by_dte_bucket[].dte_rangearray of numberInclusive [lower, upper] DTE bounds (final bucket carries int.MaxValue as the upper bound).
by_dte_bucket[].net_gexnumberNet gamma exposure (USD), summed over every contract whose DTE falls in the bucket
by_dte_bucket[].net_dexnumberNet delta exposure (USD), summed over every contract whose DTE falls in the bucket
by_dte_bucket[].net_vexnumberNet vanna exposure (USD), summed over every contract whose DTE falls in the bucket
by_dte_bucket[].net_chexnumberNet charm exposure (USD), summed over every contract whose DTE falls in the bucket
by_dte_bucket[].contract_countnumberNumber of contracts feeding the bucket.
by_expiry[]arrayOne row per expiry, ordered ascending. is_opex / is_triple_witching use the holiday-adjusted rule.
by_expiry[].expirationstringExpiration date (yyyy-MM-dd)
by_expiry[].dtenumberDays to expiration
by_expiry[].is_opexbooleanBy expiry: is OPEX
by_expiry[].is_triple_witchingbooleanBy expiry: is triple witching
by_expiry[].net_gexnumberNet gamma exposure (USD)
by_expiry[].net_dexnumberNet delta exposure (USD)
by_expiry[].net_vexnumberNet vanna exposure (USD)
by_expiry[].net_chexnumberNet charm exposure (USD)
by_expiry[].pct_of_chain_gexnumberThis 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_concentrationobjectSPY/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_ofstring, objectResponse envelope, see Response envelope.

Fields of gamma_concentration

Field Type Description
gamma_concentration.totalsobjectGamma concentration: totals
gamma_concentration.totals.gross_gex_usdnumberTotals: gross GEX (USD)
gamma_concentration.totals.net_gex_usdnumberTotals: net GEX (USD)
gamma_concentration.totals.call_gex_usdnumberTotals: call GEX (USD)
gamma_concentration.totals.put_gex_usdnumberTotals: put GEX (USD)
gamma_concentration.totals.contract_countnumberContract count
gamma_concentration.by_expiry[].expirystringExpiration date (yyyy-MM-dd)
gamma_concentration.by_expiry[].valuation_cutoff_atstringBy expiry: valuation cutoff timestamp (UTC)
gamma_concentration.by_expiry[].last_trading_atstringBy expiry: last trading timestamp (UTC)
gamma_concentration.by_expiry[].last_trading_statusstringBy expiry: last trading status
gamma_concentration.by_expiry[].settlement_atstring | nullBy expiry: settlement timestamp (UTC)
gamma_concentration.by_expiry[].settlement_statusstringBy expiry: settlement status
gamma_concentration.by_expiry[].calendar_days_to_expirynumberBy expiry: calendar days to expiry
gamma_concentration.by_expiry[].gross_share_pctnumberBy expiry: gross share (%)
gamma_concentration.by_expiry[].gross_gex_usdnumberBy expiry: gross GEX (USD)
gamma_concentration.by_expiry[].net_gex_usdnumberBy expiry: net GEX (USD)
gamma_concentration.by_expiry[].call_gex_usdnumberBy expiry: call GEX (USD)
gamma_concentration.by_expiry[].put_gex_usdnumberBy expiry: put GEX (USD)
gamma_concentration.by_expiry[].contract_countnumberContract count
gamma_concentration.next_active_expirystringGamma concentration: next active expiry
gamma_concentration.largest_gross_expirystringGamma concentration: largest gross expiry
gamma_concentration.symbolstringUnderlying symbol
gamma_concentration.underlying_pricenumberUnderlying price used for the calculation
gamma_concentration.snapshot_idstringGamma concentration: snapshot ID
gamma_concentration.generated_atstringGamma concentration: generated timestamp (UTC)
gamma_concentration.quote_atstringGamma concentration: quote timestamp (UTC)
gamma_concentration.greeks_oldest_atstringGamma concentration: greeks oldest timestamp (UTC)
gamma_concentration.greeks_newest_atstringGamma concentration: greeks newest timestamp (UTC)
gamma_concentration.calculation_versionstringGamma concentration: calculation version
gamma_concentration.pricing_basisstringGamma concentration: pricing basis
gamma_concentration.data_statusstringGamma concentration: data status
gamma_concentration.reasonsarrayGamma concentration: reasons
gamma_concentration.reasons[].codestringReasons: code
gamma_concentration.reasons[].messagestringHuman-readable message
gamma_concentration.reasons[].contract_countnumber | nullContract count
gamma_concentration.oi_as_ofstring | nullGamma concentration: OI as of
gamma_concentration.oi_vintage_statusstringGamma concentration: OI vintage status
gamma_concentration.eligible_contract_countnumberGamma concentration: eligible contract count
gamma_concentration.rejected_contract_countnumberGamma concentration: rejected contract count
gamma_concentration.observed_min_strikenumberGamma concentration: observed min strike
gamma_concentration.observed_max_strikenumberGamma concentration: observed max strike
gamma_concentration.gex_unitstringGamma concentration: GEX unit
gamma_concentration.sign_conventionstringGamma concentration: sign convention
gamma_concentration.analysis_typestringGamma concentration: analysis type
gamma_concentration.by_expiryarrayBy expiry

Errors

Status Error When
401-Missing or invalid X-Api-Key. The body is empty; check the status code before parsing JSON.
403tier_restrictedYour plan is below Growth. The body includes current_plan and required_plan.
404symbol_not_foundNo data for the symbol (unknown symbol, or no live data). Outside US market hours the message also says the market is closed.
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.

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_gex ranks 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_gex safe-divides to 0, 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

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.

Related reading

Complementary endpoints

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