- Live API Reference
- Strategy Signals
- 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
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.
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_strike | number | Max pain strike of the expiry |
distance_to_pain_pct | number | Distance from spot to max_pain_strike (decimal) |
oi_concentration_score | number | Concentration of open interest across strikes (higher = more concentrated) |
total_open_interest | number | Total open interest of the expiry |
underlying_price | number | Underlying price used for the read |
gamma_flip | number | Strike where net GEX crosses zero |
gamma_flip_status | string | available when gamma_flip is a certified level; any other value means unverified or missing |
call_wall | number | Strike with the largest call gamma |
put_wall | number | Strike with the largest put gamma |
distance_to_flip_pct | number | Distance from spot to gamma_flip (decimal, 0.017 = 1.7%) |
spot_position_label | string | Where spot sits against the walls, e.g. inside_walls |
minutes_to_close | number | Minutes left in the regular session |
session_open_spot | number | Underlying price at the session open |
expected_move_today | number | Today's expected move in price points |
expected_move_consumed_pct | number | Share of today's expected move already travelled |
theta_acceleration | number | Rate at which time decay speeds up into the close |
Regime Values
pin_risk_positive_gammarange_compressiontrend_risk_or_no_setupno_same_day_expiry/no_expiry_chain(returned withdecision: insufficient_datawhen no chain exists for the selected expiry)same_day_expiry_settled(returned withdecision: insufficient_dataonce today's expiry has settled, for example after the 16:00 ET close)
Errors
| Status | Error | When |
|---|---|---|
400 | invalid_expiry | expiry is present but not yyyy-MM-dd. |
400 | expiry_in_past | expiry 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. |
403 | tier_restricted | The plan lacks 0DTE access. |
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
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
decisioniscandidateandregimereads 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
regimereads trend ordecisionisno_setup - Drive intraday alerts - fire only when
scoreandconfidenceclear a threshold and the pin and timing both line up - Size on conviction - scale the same-day clip by
scoreandconfidencerather than a fixed lot - Respect the guardrails - honor
risk_flags[]and require a cleandata_qualitybefore selling into the close
Related
Related reading
- 0DTE SPY: the complete intraday playbook - the same-day mechanics behind the signal
- ML on options data: a quant guide - feed the 0DTE envelope into a systematic model
- Alpha decay: which signals erode - how fast an intraday edge decays
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
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