ZeroGEX Forced Flow API
The Forced Flow API from ZeroGEX, for forced flow.
The Forced Flow API from ZeroGEX, for forced flow.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/zerogex-io:zerogex-io-forced-flow-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ZeroGEX Forced Flow API
description: 'Real-time options analytics API.
**Two versions are served.**
* **v2 (recommended)** — `/api/v2/*`. Every endpoint returns `{"data": ..., "freshness": {...}}`, where the `freshness` block reports response evaluation time, the underlying data''s source timestamp, the market session, the expected update cadence, and a rolled-up `freshness_status` — so endpoint health and data age are separate, machine-readable facts on every response.
* **v1 (stable)** — `/api/*` and `/api/v1/levels/*`. Unchanged and supported; `data` in a v2 response is byte-for-byte the v1 body.
See "API versions & the freshness envelope" in API_Guide.md for the field contract and the per-endpoint cadence table.'
version: 2.0.0
tags:
- name: Forced Flow
paths:
/api/forced-flow/curve:
get:
tags:
- Forced Flow
summary: Get Curve
description: 'Forced Flow Curve: flow vs. spot over a grid, with gamma/charm/vanna bands.'
operationId: get_curve_api_forced_flow_curve_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
description: Underlying symbol
default: SPY
title: Symbol
description: Underlying symbol
- name: expiry
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: ISO expiry to isolate, else all
title: Expiry
description: ISO expiry to isolate, else all
- name: spot_range_pct
in: query
required: false
schema:
type: number
maximum: 0.5
exclusiveMinimum: 0.0
description: +/- span, fraction
default: 0.02
title: Spot Range Pct
description: +/- span, fraction
- name: vol_change_pts
in: query
required: false
schema:
type: number
maximum: 20.0
minimum: -20.0
default: 0.0
title: Vol Change Pts
- name: horizon_days
in: query
required: false
schema:
anyOf:
- type: number
maximum: 30.0
minimum: 0.0
- type: 'null'
description: Horizon in days; default = to today's close
title: Horizon Days
description: Horizon in days; default = to today's close
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CurveResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/charm-decay:
get:
tags:
- Forced Flow
summary: Get Charm Decay
description: 'Charm-into-Close: cumulative time-forced flow to the bell, spot held fixed.'
operationId: get_charm_decay_api_forced_flow_charm_decay_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: expiry
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Expiry
- name: steps
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 2
default: 26
title: Steps
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CharmDecayResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/vanna-ladder:
get:
tags:
- Forced Flow
summary: Get Vanna Ladder
description: 'Vanna Ladder: forced flow vs. IV change in vol points (spot, time fixed).'
operationId: get_vanna_ladder_api_forced_flow_vanna_ladder_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: expiry
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Expiry
- name: lo_pts
in: query
required: false
schema:
type: number
maximum: 0.0
minimum: -20.0
default: -3.0
title: Lo Pts
- name: hi_pts
in: query
required: false
schema:
type: number
maximum: 20.0
minimum: 0.0
default: 3.0
title: Hi Pts
- name: step_pts
in: query
required: false
schema:
type: number
maximum: 5.0
exclusiveMinimum: 0.0
default: 0.5
title: Step Pts
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VannaLadderResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/surface:
get:
tags:
- Forced Flow
summary: Get Surface
description: 'Forced Flow Surface: spot x time-of-day -> net dealer stock demand.'
operationId: get_surface_api_forced_flow_surface_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: expiry
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Expiry
- name: spot_range_pct
in: query
required: false
schema:
type: number
maximum: 0.5
exclusiveMinimum: 0.0
default: 0.02
title: Spot Range Pct
- name: time_steps
in: query
required: false
schema:
type: integer
maximum: 48
minimum: 1
default: 8
title: Time Steps
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SurfaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/session-surface:
get:
tags:
- Forced Flow
summary: Get Session Surface
description: 'Full-session forced-flow field: the ACTUAL historical field recomputed from
stored ``option_chains`` (RTH open -> now) plus a projection of the current
book (now -> close).
Columns march left (open) to right (close); ``now_index`` marks the boundary
between recorded history and projection. History is rebuilt from
``option_chains`` because the persisted ``forced_flow_profile.profile`` JSONB
is written empty -- so the past field cannot be read back, only recomputed.
``expiry`` limits every column, past and projected, to that one expiration.'
operationId: get_session_surface_api_forced_flow_session_surface_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: spot_range_pct
in: query
required: false
schema:
type: number
maximum: 0.5
exclusiveMinimum: 0.0
default: 0.02
title: Spot Range Pct
- name: past_steps
in: query
required: false
schema:
type: integer
maximum: 120
minimum: 1
description: Actual-history columns
default: 30
title: Past Steps
description: Actual-history columns
- name: future_steps
in: query
required: false
schema:
type: integer
maximum: 48
minimum: 1
description: Projection columns to close
default: 8
title: Future Steps
description: Projection columns to close
- name: expiry
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Expiry
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SessionSurfaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/scenario:
get:
tags:
- Forced Flow
summary: Get Scenario
description: 'One arbitrary what-if: (spot move, time, vol shift) -> flow + attribution.'
operationId: get_scenario_api_forced_flow_scenario_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: expiry
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Expiry
- name: spot_move_pct
in: query
required: false
schema:
type: number
maximum: 0.5
minimum: -0.5
description: Spot move, fraction
default: 0.0
title: Spot Move Pct
description: Spot move, fraction
- name: days
in: query
required: false
schema:
type: number
maximum: 30.0
minimum: 0.0
description: Calendar days elapsed
default: 0.0
title: Days
description: Calendar days elapsed
- name: vol_change_pts
in: query
required: false
schema:
type: number
maximum: 20.0
minimum: -20.0
default: 0.0
title: Vol Change Pts
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ScenarioResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/levels:
get:
tags:
- Forced Flow
summary: Get Levels
description: 'Regime map: existing gamma flip + forced-flow charm/vanna/zero-flow levels.'
operationId: get_levels_api_forced_flow_levels_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/src__api__routers__forced_flow__LevelsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/forced-flow/backtest:
get:
tags:
- Forced Flow
summary: Get Backtest
description: 'Charm-into-Close track record: when the morning charm flow is stronger
(or weaker) than its own recent normal, does the noon->close return lean the
same way?
Scores the charm read RELATIVE to its trailing baseline rather than by raw
sign -- for an index book the raw sign is structurally almost constant ("buy"
nearly every day), so it degenerates to the naive baseline and tests nothing;
the deviation from recent normal is the part that varies. Reads the persisted
``forced_flow_profile`` + ``underlying_quotes`` history and reports the hit
rate against a naive directional baseline -- honestly, including when the
sample is thin or the edge is nil. Scores TWO forecast definitions over
identical sessions (``full`` = 0DTE-inclusive close flow; ``smooth`` =
first-order charm only) so the A/B is visible. Returns 200 with zeroed counts
(not 404) before enough sessions have accrued, so the page can show an honest
"collecting" state rather than an error.'
operationId: get_backtest_api_forced_flow_backtest_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: lookback_days
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 5
description: Calendar days of history to score
default: 180
title: Lookback Days
description: Calendar days of history to score
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/BacktestResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
SessionColumnOut:
properties:
min_to_close:
type: number
title: Min To Close
spot:
type: number
title: Spot
magnet:
anyOf:
- type: number
- type: 'null'
title: Magnet
pivot:
anyOf:
- type: number
- type: 'null'
title: Pivot
is_past:
type: boolean
title: Is Past
type: object
required:
- min_to_close
- spot
- is_past
title: SessionColumnOut
SurfaceResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
spots:
items:
type: number
type: array
title: Spots
times_days:
items:
type: number
type: array
title: Times Days
z:
items:
items:
type: number
type: array
type: array
title: Z
type: object
required:
- symbol
- spot
- timestamp
- spots
- times_days
- z
title: SurfaceResponse
SessionPriceBar:
properties:
min_to_close:
type: number
title: Min To Close
open:
type: number
title: Open
high:
type: number
title: High
low:
type: number
title: Low
close:
type: number
title: Close
type: object
required:
- min_to_close
- open
- high
- low
- close
title: SessionPriceBar
description: One 5-minute realized OHLC candle on the field's minutes-to-close axis.
CurvePoint:
properties:
price:
type: number
title: Price
total:
type: number
title: Total
gamma:
type: number
title: Gamma
charm:
type: number
title: Charm
vanna:
type: number
title: Vanna
type: object
required:
- price
- total
- gamma
- charm
- vanna
title: CurvePoint
SessionSurfaceResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
session_open_min_to_close:
type: number
title: Session Open Min To Close
now_min_to_close:
type: number
title: Now Min To Close
prices:
items:
type: number
type: array
title: Prices
z:
items:
items:
type: number
type: array
type: array
title: Z
columns:
items:
$ref: '#/components/schemas/SessionColumnOut'
type: array
title: Columns
now_index:
type: integer
title: Now Index
price_bars:
items:
$ref: '#/components/schemas/SessionPriceBar'
type: array
title: Price Bars
default: []
type: object
required:
- symbol
- spot
- timestamp
- session_open_min_to_close
- now_min_to_close
- prices
- z
- columns
- now_index
title: SessionSurfaceResponse
CharmDecayPoint:
properties:
days_elapsed:
type: number
title: Days Elapsed
flow:
type: number
title: Flow
type: object
required:
- days_elapsed
- flow
title: CharmDecayPoint
CharmDecayResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
session_days:
type: number
title: Session Days
close_flow_usd:
type: number
title: Close Flow Usd
curve:
items:
$ref: '#/components/schemas/CharmDecayPoint'
type: array
title: Curve
type: object
required:
- symbol
- spot
- timestamp
- session_days
- close_flow_usd
- curve
title: CharmDecayResponse
VannaLadderResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
curve:
items:
$ref: '#/components/schemas/VannaLadderPoint'
type: array
title: Curve
type: object
required:
- symbol
- spot
- timestamp
- curve
title: VannaLadderResponse
BacktestResponse:
properties:
symbol:
type: string
title: Symbol
lookback_days:
type: integer
title: Lookback Days
full:
$ref: '#/components/schemas/BacktestVariant'
smooth:
$ref: '#/components/schemas/BacktestVariant'
type: object
required:
- symbol
- lookback_days
- full
- smooth
title: BacktestResponse
BacktestRecord:
properties:
date:
type: string
title: Date
charm_flow:
type: number
title: Charm Flow
charm_baseline:
type: number
title: Charm Baseline
charm_deviation:
type: number
title: Charm Deviation
return_pct:
type: number
title: Return Pct
predicted_dir:
type: integer
title: Predicted Dir
realized_dir:
type: integer
title: Realized Dir
hit:
type: boolean
title: Hit
type: object
required:
- date
- charm_flow
- charm_baseline
- charm_deviation
- return_pct
- predicted_dir
- realized_dir
- hit
title: BacktestRecord
src__api__routers__forced_flow__LevelsResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
gamma_flip:
anyOf:
- type: number
- type: 'null'
title: Gamma Flip
charm_flip:
anyOf:
- type: number
- type: 'null'
title: Charm Flip
vanna_flip:
anyOf:
- type: number
- type: 'null'
title: Vanna Flip
zero_flow_level:
anyOf:
- type: number
- type: 'null'
title: Zero Flow Level
type: object
required:
- symbol
- spot
- timestamp
title: LevelsResponse
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
VannaLadderPoint:
properties:
vol_change_pts:
type: number
title: Vol Change Pts
flow:
type: number
title: Flow
type: object
required:
- vol_change_pts
- flow
title: VannaLadderPoint
BacktestVariant:
properties:
total_sessions:
type: integer
title: Total Sessions
evaluated_sessions:
type: integer
title: Evaluated Sessions
warmup_sessions:
type: integer
title: Warmup Sessions
default: 0
hits:
type: integer
title: Hits
hit_rate:
anyOf:
- type: number
- type: 'null'
title: Hit Rate
hit_rate_ci_low:
anyOf:
- type: number
- type: 'null'
title: Hit Rate Ci Low
hit_rate_ci_high:
anyOf:
- type: number
- type: 'null'
title: Hit Rate Ci High
baseline_rate:
anyOf:
- type: number
- type: 'null'
title: Baseline Rate
edge:
anyOf:
- type: number
- type: 'null'
title: Edge
edge_p_value:
anyOf:
- type: number
- type: 'null'
title: Edge P Value
significant:
type: boolean
title: Significant
default: false
signal_mean_return:
anyOf:
- type: number
- type: 'null'
title: Signal Mean Return
signal_t_stat:
anyOf:
- type: number
- type: 'null'
title: Signal T Stat
records:
items:
$ref: '#/components/schemas/BacktestRecord'
type: array
title: Records
type: object
required:
- total_sessions
- evaluated_sessions
- hits
- records
title: BacktestVariant
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
CurveResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
horizon_days:
type: number
title: Horizon Days
zero_flow_level:
anyOf:
- type: number
- type: 'null'
title: Zero Flow Level
curve:
items:
$ref: '#/components/schemas/CurvePoint'
type: array
title: Curve
type: object
required:
- symbol
- spot
- timestamp
- horizon_days
- curve
title: CurveResponse
ScenarioResponse:
properties:
symbol:
type: string
title: Symbol
spot:
type: number
title: Spot
timestamp:
type: string
format: date-time
title: Timestamp
spot_move_pct:
type: number
title: Spot Move Pct
days:
type: number
title: Days
vol_change_pts:
type: number
title: Vol Change Pts
total_usd:
type: number
title: Total Usd
gamma_component:
type: number
title: Gamma Component
charm_component:
type: number
title: Charm Component
vanna_component:
type: number
title: Vanna Component
residual:
type: number
title: Residual
type: object
required:
- symbol
- spot
- timestamp
- spot_move_pct
- days
- vol_change_pts
- total_usd
- gamma_component
- charm_component
- vanna_component
- residual
title: ScenarioResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
bearerFormat: API-Key