- Live API Reference
- Strategy Signals
- Term Structure Signal
Term Structure Signal API
Pure-signal read of the ATM implied-vol term structure across all upcoming expiries (contango vs backwardation, front/back IV, slope, per-expiry points). No structure is selected; decision is neutral.
Endpoint
X-Api-Key)
Rate Limited: Yes
Plan: Growth+
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
symbol | path | string | required | - | Underlying symbol. This endpoint takes no tuning parameters. |
Request
curl -H "X-Api-Key: YOUR_API_KEY" \
"https://lab.flashalpha.com/v1/strategies/term-structure/SPY"import requests
resp = requests.get(
"https://lab.flashalpha.com/v1/strategies/term-structure/SPY",
headers={"X-Api-Key": "YOUR_API_KEY"}
)
resp.raise_for_status()
data = resp.json()
print(f"{data['regime']} slope={data['metrics']['slope']}")const resp = await fetch(
"https://lab.flashalpha.com/v1/strategies/term-structure/SPY",
{ headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log(`${data.regime} slope=${data.metrics.slope}`);Try it live
Runs on live market data and uses 1 request from your daily quota.
Response
Returns the standard strategy decision envelope. This is a pure-signal endpoint, so no structure is selected and decision is neutral. Only metrics and regime change per strategy.
{
"strategy": "term_structure",
"symbol": "SPY",
"timestamp": "2026-10-30T13:46:26.7623417Z",
"decision": "neutral",
"score": 57,
"confidence": 1,
"regime": "contango",
"best_structures": [],
"metrics": {
"front_iv": 0.2377,
"back_iv": 0.3059,
"slope": 0.0682,
"shape": "contango",
"expiry_count": 34,
"term_points": [
{
"expiry": "2026-10-30",
"dte": 0,
"atm_iv": 0.2377
},
{
"expiry": "2026-11-02",
"dte": 3,
"atm_iv": 0.1192
}
],
"underlying_price": 760.345
},
"risk_flags": [],
"why": [
"Front ATM IV 23.8 % below back 30.6 % (slope +0.068) - upward-sloping term structure."
],
"avoid_if": [
"Sparse expiry coverage distorts the slope - confirm each expiry has a populated ATM strike."
],
"data_quality": {
"score": 85,
"warnings": []
},
"endpoint_version": "2026.09.30",
"data_as_of": {
"node": "fa4",
"equity_feed": "2026-10-30T13:46:26.53Z",
"equity_options_feed": "2026-10-30T13:46:25Z",
"index_feed": "2026-10-30T13:46:26.1488076Z",
"index_options_feed": "2026-10-30T13:46:24Z",
"futures_feed": "2026-10-30T13:46:22.778Z",
"futures_options_feed": "2026-10-30T13:46:20.351Z",
"flow_feed": "2026-10-30T13:46: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.
Response Fields
Fields of the metrics object. The rest of the response is the shared decision envelope.
| Field | Type | Description |
|---|---|---|
front_iv | number | ATM implied volatility of the front expiry (decimal) |
back_iv | number | ATM implied volatility of the back expiry (decimal) |
slope | number | back_iv minus front_iv |
shape | string | Curve shape, e.g. contango |
expiry_count | number | Number of expiries on the curve |
term_points | array | Per expiry: expiry, dte, atm_iv |
underlying_price | number | Underlying price used for the read |
regime values: contango, backwardation, flat_term; plus no_term_structure_data (insufficient-data case).
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 market data for the symbol. |
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
This strategy is a pure-signal read of the ATM implied-vol term structure across all upcoming expiries. It classifies the curve as contango, backwardation, or flat, and reports front/back IV, the slope, and per-expiry term points.
It returns the standard strategy decision envelope shared by all Strategy Signals endpoints. As a signal-only read no structure is selected and decision is neutral. When no expiry has a usable ATM IV, it returns decision: insufficient_data with regime: no_term_structure_data.
Common Use Cases
- Read contango vs backwardation - use
regimeto classify the curve and pick calendar or diagonal setups accordingly - Trade only clean signals - act when
decisioniscandidateand skipno_setupreads where the slope is flat - Drop in the proposed structure - pull
best_structures[]for a calendar or diagonal aligned with the curve shape - Flag front-end inversions - catch backwardation ahead of events via
regimeandrisk_flags[] - Rank the watchlist - sort by
scoreto find the steepest term-structure dislocations across a universe - Respect the guardrails - scale by
scoreandconfidence, and require a cleandata_qualitybefore trading the curve
Related
Related reading
- Volatility term structure: contango, backwardation & events - the curve mechanics behind the signal
- ML on options data: a quant guide - feed term-structure features into a systematic model
- Alpha decay: which signals erode - how a curve edge mean-reverts
Complementary endpoints
- sell-window - whether to sell today at each expiry, plus suggested positions
- Strategy Signals overview - the shared decision envelope across every strategy
- Vol Carry - pair the curve shape with a VRP edge before trading the tenor
- Skew & Term - the raw ATM term-structure points the signal is built on
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