Term Structure Strategy API - Contango vs Backwardation Signal | FlashAlpha
  1. 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

GET /v1/strategies/term-structure/{symbol}
Auth required (X-Api-Key) Rate Limited: Yes Plan: Growth+

Parameters

Name In Type Required Default Description
symbolpathstringrequired - 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.

GET

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_ivnumberATM implied volatility of the front expiry (decimal)
back_ivnumberATM implied volatility of the back expiry (decimal)
slopenumberback_iv minus front_iv
shapestringCurve shape, e.g. contango
expiry_countnumberNumber of expiries on the curve
term_pointsarrayPer expiry: expiry, dte, atm_iv
underlying_pricenumberUnderlying 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.
403tier_restrictedYour plan is below Growth. The body includes current_plan and required_plan.
404symbol_not_foundNo market data for the symbol.
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

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 regime to classify the curve and pick calendar or diagonal setups accordingly
  • Trade only clean signals - act when decision is candidate and skip no_setup reads 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 regime and risk_flags[]
  • Rank the watchlist - sort by score to find the steepest term-structure dislocations across a universe
  • Respect the guardrails - scale by score and confidence, and require a clean data_quality before trading the curve

Related reading

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

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