ZeroGEX Levels (v1) API
The Levels (v1) API from ZeroGEX, for levels (v1).
The Levels (v1) API from ZeroGEX, for levels (v1).
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-levels-v1-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 Levels (v1) 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: Levels (v1)
paths:
/api/v1/levels/{symbol}:
get:
tags:
- Levels (v1)
summary: Get Levels
description: 'Consolidated dealer-positioning levels for one underlying.
Returns the latest gamma flip, call/put walls and max pain, plus the
per-strike gamma profile nearest to spot — the derived, redistributable
primitives a charting integration draws as horizontal lines and a
histogram. ``404`` when no snapshot exists for ``symbol`` yet, or when
``expiration`` names one the chain does not list (or that has expired).'
operationId: get_levels_api_v1_levels__symbol__get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: path
required: true
schema:
type: string
minLength: 1
maxLength: 16
pattern: ^[A-Za-z0-9.^-]+$
description: Underlying symbol, e.g. SPY, SPX, QQQ.
title: Symbol
description: Underlying symbol, e.g. SPY, SPX, QQQ.
- name: strikes
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
description: Number of strikes nearest to spot to include in the gamma profile (aggregated across expirations, or within the one ``expiration`` selects).
default: 40
title: Strikes
description: Number of strikes nearest to spot to include in the gamma profile (aggregated across expirations, or within the one ``expiration`` selects).
- name: expiration
in: query
required: false
schema:
type: string
maxLength: 10
description: '''all'' (default) for the whole chain; ''0dte'' for the nearest expiration that has not yet settled (today''s until 16:00 ET, then the next one listed); or one expiration as YYYY-MM-DD. A scoped request recomputes the walls, flip, max pain and profile from that expiration alone; the Pin Strike is 0DTE by construction and is not scoped.'
default: all
title: Expiration
description: '''all'' (default) for the whole chain; ''0dte'' for the nearest expiration that has not yet settled (today''s until 16:00 ET, then the next one listed); or one expiration as YYYY-MM-DD. A scoped request recomputes the walls, flip, max pain and profile from that expiration alone; the Pin Strike is 0DTE by construction and is not scoped.'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/src__api__routers__levels__LevelsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
DealerLevels:
properties:
gamma_flip:
anyOf:
- type: number
- type: 'null'
title: Gamma Flip
gamma_flip_reason:
anyOf:
- type: string
- type: 'null'
title: Gamma Flip Reason
gamma_flip_label:
anyOf:
- type: string
- type: 'null'
title: Gamma Flip Label
call_wall:
anyOf:
- type: number
- type: 'null'
title: Call Wall
put_wall:
anyOf:
- type: number
- type: 'null'
title: Put Wall
max_pain:
anyOf:
- type: number
- type: 'null'
title: Max Pain
pin_strike:
anyOf:
- type: number
- type: 'null'
title: Pin Strike
type: object
title: DealerLevels
description: 'The four headline horizontal levels.
Any field may be ``null`` when the analytics engine could not resolve
it for the latest snapshot (e.g. an unresolved gamma flip on a thin
chain) — consumers should hide, not zero, a null level.'
src__api__routers__levels__LevelsResponse:
properties:
symbol:
type: string
title: Symbol
spot:
anyOf:
- type: number
- type: 'null'
title: Spot
as_of:
type: string
format: date-time
title: As Of
age_seconds:
anyOf:
- type: integer
- type: 'null'
title: Age Seconds
computed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Computed At
data_as_of:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Data As Of
net_gex_at_spot:
anyOf:
- type: number
- type: 'null'
title: Net Gex At Spot
expiration:
anyOf:
- type: string
format: date
- type: 'null'
title: Expiration
levels:
$ref: '#/components/schemas/DealerLevels'
pin_score:
anyOf:
- type: number
- type: 'null'
title: Pin Score
pin_confidence:
anyOf:
- type: number
- type: 'null'
title: Pin Confidence
pin_strike_reason:
anyOf:
- type: string
- type: 'null'
title: Pin Strike Reason
profile:
items:
$ref: '#/components/schemas/StrikeGamma'
type: array
title: Profile
expired_excluded:
items:
type: string
format: date
type: array
title: Expired Excluded
rolled_to_expiration:
anyOf:
- type: string
format: date
- type: 'null'
title: Rolled To Expiration
type: object
required:
- symbol
- as_of
- levels
- profile
title: LevelsResponse
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
StrikeGamma:
properties:
strike:
type: number
title: Strike
net_gex:
type: number
title: Net Gex
call_gex:
type: number
title: Call Gex
put_gex:
type: number
title: Put Gex
type: object
required:
- strike
- net_gex
- call_gex
- put_gex
title: StrikeGamma
description: 'One bar of the per-strike gamma profile (dollar GEX per 1% move).
Aggregated across expirations; ``net_gex == call_gex + put_gex`` by
construction. Call exposure is signed positive and put exposure
negative under the traditional modeled dealer-positioning convention
(dealers modeled net long calls / net short puts). This is a modeled
sign convention, not a direct observation of dealer inventory.'
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
bearerFormat: API-Key