Open Interest Diff API - Day-Over-Day OI Changes by Contract | FlashAlpha
  1. 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

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

GET

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_availablebooleanfalse 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_changenumberSum of per-contract deltas across all call contracts that have a prior-day match.
total_put_oi_changenumberSame for puts.
top_oi_changes[]arraySorted by |oi_change| descending. Each row carries the contract's strike, type, expiry, today's OI, prior OI, and the signed delta.
symbolstringUnderlying symbol
underlying_pricenumberUnderlying price used for the calculation
as_ofstringTimestamp of the data (ISO 8601, UTC)
top_oi_changes[].strikenumberStrike price
top_oi_changes[].typestringOption type
top_oi_changes[].expirystringExpiration date (yyyy-MM-dd)
top_oi_changes[].today_oinumberTop OI changes: today OI
top_oi_changes[].prior_oinumberTop OI changes: prior OI
top_oi_changes[].oi_changenumberTop OI changes: OI change
endpoint_version, data_as_ofstring, objectResponse 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.
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 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_changes surfaces 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_available flips true, use two ?at= calls on historical.flashalpha.com for exact two-date OI deltas

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