- Live API Reference
- Exposure Analytics
- Open Interest Changes
Open Interest Changes API
Day-over-day open-interest deltas: per-contract changes (today's OI minus the prior trading day's OI), the top-N changes sorted by absolute magnitude, and call/put aggregate totals.
Endpoint
X-Api-Key)
Rate Limited: Yes
Plan: Growth+
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
symbol |
path | string | required | - | Underlying symbol |
topN |
query | integer | 10 |
Clamped to [1, 100]. Non-numeric values return a 400 problem-details body. |
Request
curl -H "X-Api-Key: YOUR_API_KEY" \
"https://lab.flashalpha.com/v1/exposure/oi-diff/SPY?topN=5"import requests
resp = requests.get(
"https://lab.flashalpha.com/v1/exposure/oi-diff/SPY",
headers={"X-Api-Key": "YOUR_API_KEY"},
params={"topN": 5}
)
resp.raise_for_status()
data = resp.json()
print(f"Net call OI change: {data['total_call_oi_change']:,}")const resp = await fetch(
"https://lab.flashalpha.com/v1/exposure/oi-diff/SPY?topN=5",
{ headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log("Net call OI change: " + data.total_call_oi_change.toLocaleString());Try it live
Runs on live market data and uses 1 request from your daily quota.
Response
{
"symbol": "SPY",
"underlying_price": 760.42,
"as_of": "2026-10-30T13:45:40.0434303Z",
"prior_snapshot_available": true,
"total_call_oi_change": 238718,
"total_put_oi_change": 378102,
"top_oi_changes": [
{
"strike": 757,
"type": "P",
"expiry": "2026-11-20",
"today_oi": 37286,
"prior_oi": 1881,
"oi_change": 35405
},
{
"strike": 725,
"type": "P",
"expiry": "2026-11-20",
"today_oi": 108209,
"prior_oi": 75626,
"oi_change": 32583
}
],
"endpoint_version": "2026.09.30",
"data_as_of": {
"node": "fa5",
"equity_feed": "2026-10-30T13:45:39.751Z",
"equity_options_feed": "2026-10-30T13:45:39Z",
"index_feed": "2026-10-30T13:45:39.085Z",
"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.
Response Fields
| Field | Type | Description |
|---|---|---|
prior_snapshot_available | boolean | false when no prior-day OI data has been written to the source table yet; total_*_oi_change are then 0 and top_oi_changes is empty. |
total_call_oi_change | number | Sum of per-contract deltas across all call contracts that have a prior-day match. |
total_put_oi_change | number | Same for puts. |
top_oi_changes[] | array | Sorted by |oi_change| descending. Each row carries the contract's strike, type, expiry, today's OI, prior OI, and the signed delta. |
symbol | string | Underlying symbol |
underlying_price | number | Underlying price used for the calculation |
as_of | string | Timestamp of the data (ISO 8601, UTC) |
top_oi_changes[].strike | number | Strike price |
top_oi_changes[].type | string | Option type |
top_oi_changes[].expiry | string | Expiration date (yyyy-MM-dd) |
top_oi_changes[].today_oi | number | Top OI changes: today OI |
top_oi_changes[].prior_oi | number | Top OI changes: prior OI |
top_oi_changes[].oi_change | number | Top OI changes: OI change |
endpoint_version, data_as_of | string, object | Response envelope, see Response envelope. |
Errors
| Status | Error | When |
|---|---|---|
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. |
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 OI diff endpoint reports day-over-day open-interest changes per contract, filling the gap behind the top_oi_changes: [] placeholder in /v1/exposure/narrative. It computes today's OI minus the prior trading day's OI for each contract, returns the top-N rows by absolute magnitude, and reports call and put aggregate change totals.
Contracts present today with no prior-day entry are excluded from the top-N because no delta is computable. The prior-day OI lookup currently points at a stub source; once the ExposureStrikeSnapshots writer pipeline ships, prior_snapshot_available flips to true and deltas populate with no client change. For point-in-time historical OI diffs, use historical.flashalpha.com with two ?at= calls (today's date and the prior trading day).
Common Use Cases
- Spot overnight positioning shifts - the per-contract OI delta shows where dealers added or unwound exposure since yesterday, the first read on a fresh build
- Rank the biggest builds and unwinds -
top_oi_changessurfaces the largest absolute OI moves so you can focus on the strikes that actually moved positioning - Gauge net call vs put flow - the aggregate change totals separate call-side from put-side OI growth to read directional bias in new positioning
- Confirm GEX shifts have a cause - pair an OI build at a strike with that strike's gamma to tell a real wall forming from a same-day repricing artifact
- Filter computable contracts only - rows with no prior-day entry are excluded, so the delta set is limited to contracts where a true day-over-day change exists
- Run point-in-time historical diffs - until
prior_snapshot_availableflips true, use two?at=calls onhistorical.flashalpha.comfor exact two-date OI deltas
Related
Related reading
- Opening vs closing bias: the OI simulator - how OI changes resolve into opening vs closing trade intent
- Effective open interest: live GEX from flow - deriving live GEX from intraday OI estimates rather than settled snapshots
Complementary endpoints
- Gamma Exposure (GEX) - turn the OI build into the resulting gamma walls and flip
- Exposure Sheet - the full per-strike greek sheet the OI change feeds into
- Flow OI simulator - the live, flow-aware OI estimate versus this settled diff
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