0DTE Strategy API - Same-Day Range Compression Score | FlashAlpha
  1. 0DTE Strategy Signals

0DTE Strategy API

Same-day (0DTE) range-compression read: combines pin/positioning with intraday time-of-day context (minutes to close, expected-move consumed, theta acceleration) and proposes an iron fly when the pin is strong enough.

Endpoint

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

Parameters

Name In Type Required Default Description
symbol path string required - Underlying symbol
expiry query date today (same-day expiry) yyyy-MM-dd. Overrides the same-day default. Invalid values return 400 expiry_in_past or 400 invalid_expiry.
minOpenInterest query integer 500 Minimum OI a leg must have to be selected. Non-numeric values return a 400 problem-details body.
wingWidth query number 5.0 Iron-fly wing width, in strike points. Non-numeric values return a 400 problem-details body.

Request

curl -H "X-Api-Key: YOUR_API_KEY" \
  "https://lab.flashalpha.com/v1/strategies/zero-dte/SPY"
import requests

resp = requests.get(
    "https://lab.flashalpha.com/v1/strategies/zero-dte/SPY",
    headers={"X-Api-Key": "YOUR_API_KEY"}
)
resp.raise_for_status()
data = resp.json()
print(f"{data['decision']} (score {data['score']}, regime {data['regime']})")
const resp = await fetch(
  "https://lab.flashalpha.com/v1/strategies/zero-dte/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.decision} (score ${data.score}, regime ${data.regime})`);

Try it live

Runs on live market data and uses 1 request from your daily quota.

GET

Response

Returns the standard strategy decision envelope. The metrics and regime fields are specific to this strategy (see below).

{
  "strategy": "zero_dte",
  "symbol": "SPY",
  "timestamp": "2026-10-30T13:46:28.5927312Z",
  "decision": "neutral",
  "score": 0,
  "confidence": 1,
  "regime": "trend_risk_or_no_setup",
  "best_structures": [],
  "metrics": {
    "max_pain_strike": 570,
    "distance_to_pain_pct": 0.2504,
    "oi_concentration_score": 0.0621,
    "total_open_interest": 2462321,
    "underlying_price": 760.385,
    "gamma_flip": 764.4586,
    "gamma_flip_status": "insufficient_local_coverage",
    "call_wall": 763,
    "put_wall": 760,
    "distance_to_flip_pct": 0.005357,
    "spot_position_label": "inside_walls",
    "minutes_to_close": 374,
    "session_open_spot": 760.385,
    "expected_move_today": 9.4702,
    "expected_move_consumed_pct": 0,
    "theta_acceleration": 0.080368
  },
  "risk_flags": [],
  "why": [
    "Pin score 0 too low for a pin trade; consider directional debit structures or no-trade."
  ],
  "avoid_if": [
    "Selling premium with weak pin is asymmetric - losses outweigh credit on a single decisive move."
  ],
  "data_quality": {
    "score": 90,
    "warnings": []
  },
  "endpoint_version": "2026.09.30",
  "data_as_of": {
    "node": "fa5",
    "equity_feed": "2026-10-30T13:46:28.564Z",
    "equity_options_feed": "2026-10-30T13:46:27Z",
    "index_feed": "2026-10-30T13:46:27.6962017Z",
    "index_options_feed": "2026-10-30T13:46:24Z",
    "futures_feed": "2026-10-30T13:46:25.854Z",
    "futures_options_feed": "2026-10-30T13:46:25.948Z",
    "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
max_pain_strikenumberMax pain strike of the expiry
distance_to_pain_pctnumberDistance from spot to max_pain_strike (decimal)
oi_concentration_scorenumberConcentration of open interest across strikes (higher = more concentrated)
total_open_interestnumberTotal open interest of the expiry
underlying_pricenumberUnderlying price used for the read
gamma_flipnumberStrike where net GEX crosses zero
gamma_flip_statusstringavailable when gamma_flip is a certified level; any other value means unverified or missing
call_wallnumberStrike with the largest call gamma
put_wallnumberStrike with the largest put gamma
distance_to_flip_pctnumberDistance from spot to gamma_flip (decimal, 0.017 = 1.7%)
spot_position_labelstringWhere spot sits against the walls, e.g. inside_walls
minutes_to_closenumberMinutes left in the regular session
session_open_spotnumberUnderlying price at the session open
expected_move_todaynumberToday's expected move in price points
expected_move_consumed_pctnumberShare of today's expected move already travelled
theta_accelerationnumberRate at which time decay speeds up into the close

Regime Values

  • pin_risk_positive_gamma
  • range_compression
  • trend_risk_or_no_setup
  • no_same_day_expiry / no_expiry_chain (returned with decision: insufficient_data when no chain exists for the selected expiry)
  • same_day_expiry_settled (returned with decision: insufficient_data once today's expiry has settled, for example after the 16:00 ET close)

Errors

Status Error When
400invalid_expiryexpiry is present but not yyyy-MM-dd.
400expiry_in_pastexpiry is a date before today (ET).
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_restrictedThe plan lacks 0DTE access.
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

0DTE extends the pin/positioning read with same-day timing context. On top of max-pain, OI concentration, and dealer levels, it factors in minutes to the close, how much of the day's expected move has already been consumed, and theta acceleration to judge whether the range is likely to compress into the bell.

When the pin is strong enough, it proposes an iron fly on the same-day expiry. Access is gated both by the Growth plan and a separate 0DTE entitlement, and the analysis defaults to today's expiry unless expiry overrides it.

Common Use Cases

  • Time same-day entries - act when decision is candidate and regime reads compression, against minutes-to-close and theta acceleration
  • Drop in the proposed structure - pull best_structures[] for an iron-fly centred where the data says price will pin
  • Stand aside on trend risk - skip premium sales when regime reads trend or decision is no_setup
  • Drive intraday alerts - fire only when score and confidence clear a threshold and the pin and timing both line up
  • Size on conviction - scale the same-day clip by score and confidence rather than a fixed lot
  • Respect the guardrails - honor risk_flags[] and require a clean data_quality before selling into the close

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
  • 0DTE - the raw same-day flow and gamma the signal is built on
  • Flow Anomaly - confirm the same-day pin with directional flow tilt

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