ZeroGEX Technicals (v2) API
The Technicals (v2) API from ZeroGEX, for technicals (v2).
The Technicals (v2) API from ZeroGEX, for technicals (v2).
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-technicals-v2-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 Technicals (v2) 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: Technicals (v2)
paths:
/api/v2/technicals:
get:
tags:
- Technicals (v2)
summary: Api V2 Technicals Get
description: 'Combined per 5-minute bar timeseries of VWAP deviation,
opening-range breakout, unusual volume spikes (all classes), and
momentum divergence — plus the underlying close — for the most
recent session.
Session window depends on ``symbols.asset_type``:
- ``INDEX`` → 09:30–16:00 ET (cash session only)
- otherwise (ETF, EQUITY) → 04:00–20:00 ET (extended hours)
Each bar represents a 5-minute bucket; ``timestamp`` is the START
of the bucket (e.g. 10:30 → 10:30:00–10:34:59). The bar aggregates
whichever 1-minute underlying bars have landed in the bucket:
``close`` is the latest 1-minute close, volumes are summed,
``high`` / ``low`` use max / min. While the 5-minute window is
still active the bar updates as new 1-minute bars arrive; once the
window closes the bar becomes immutable.
``bars`` is returned newest-first (``bars[0]`` is the most recent
5-minute bucket), matching the convention used by the other
timeseries endpoints.
Cash indices have no native volume; VWAP and volume-spike rolling
stats are computed against a proxy ETF''s per-bar volume when one
is configured (SPX→SPY, NDX→QQQ, RUT→IWM, DJX→DIA). The active
proxy is reported in the top-level ``volume_proxy`` field;
``null`` for equities/ETFs.
The "most recent session" is the trading day of the latest bar in
``underlying_quotes`` for the symbol — i.e. the live session if
it''s in progress, otherwise the most recent completed session.
Bars before 09:30 ET have ``opening_range`` fields nulled out (the
ORB window is 09:30–09:59 ET, so it doesn''t exist yet).
ORB anchor: ``orb_high`` / ``orb_low`` come from the most recent
ET date that has cash-session data (>= 09:30 ET), which can differ
from ``session_date`` for ETFs in pre-market. While in pre-market
of a new trading day, the response shows the previous session''s
ORB through every pre-market bar; once today''s 09:30 ET data
arrives, ORB switches to today''s values. INDEX symbols never carry
pre-market data, so ORB and session always agree for them.
Pass ``intervals=N`` to get only the last N 5-minute buckets
(trailing from the most recent existing bar). The response
metadata (``session_start_et`` / ``session_end_et``) still reports
the canonical session boundaries; ``bars`` is the trimmed tail.
404 when ``symbol`` isn''t in the ``symbols`` table; 200 with an
empty ``bars`` list when the symbol exists but has no quote data.
Dealer hedging is intentionally excluded — its underlying view is
a point-in-time snapshot, not a timeseries. Use
``/api/technicals/dealer-hedging`` for the current-state read.
``delay_minutes`` builds every bar from 1-minute bars at least that old
(see src/api/delayed_read.py).'
operationId: api_v2_technicals_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
minLength: 1
maxLength: 10
default: SPY
title: Symbol
- name: intervals
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 192
minimum: 1
- type: 'null'
description: If provided, return only the trailing N 5-minute bars (max 192 = 16h, the full extended ETF session). Use this for cheap incremental polling.
title: Intervals
description: If provided, return only the trailing N 5-minute bars (max 192 = 16h, the full extended ETF session). Use this for cheap incremental polling.
- name: delay_minutes
in: query
required: false
schema:
type: integer
maximum: 1440
minimum: 0
description: Serve the newest data that is at least this many minutes old instead of the latest. 0, the default, is the live read.
default: 0
title: Delay Minutes
description: Serve the newest data that is at least this many minutes old instead of the latest. 0, the default, is the live read.
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Any_'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/technicals/vwap-deviation:
get:
tags:
- Technicals (v2)
summary: Api V2 Technicals Vwap-Deviation Get
description: Get VWAP deviation for mean reversion signals
operationId: api_v2_technicals_vwap-deviation_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: timeframe
in: query
required: false
schema:
enum:
- 1min
- 5min
- 15min
- 1hr
- 1day
- 1hour
type: string
default: 1min
title: Timeframe
- name: window_units
in: query
required: false
schema:
type: integer
maximum: 90
minimum: 1
default: 20
title: Window Units
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Any_'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/technicals/opening-range:
get:
tags:
- Technicals (v2)
summary: Api V2 Technicals Opening-Range Get
description: Get opening range breakout status
operationId: api_v2_technicals_opening-range_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: timeframe
in: query
required: false
schema:
enum:
- 1min
- 5min
- 15min
- 1hr
- 1day
- 1hour
type: string
default: 1min
title: Timeframe
- name: window_units
in: query
required: false
schema:
type: integer
maximum: 90
minimum: 1
default: 20
title: Window Units
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Any_'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/technicals/dealer-hedging:
get:
tags:
- Technicals (v2)
summary: Api V2 Technicals Dealer-Hedging Get
description: 'Get current dealer hedging pressure (point-in-time snapshot).
The underlying view aggregates the latest snapshot of every option
contract (delta × open interest × 100) on the symbol to produce a
single ``expected_hedge_shares`` figure — the net share position
market makers would have to be long to be delta-neutral against
current option open interest. ``hedge_pressure`` classifies that
figure as 🟢 Heavy Buy-Hedging Risk ( +1M), or ⚪ Balanced Hedging.
Returns at most one row per symbol — this is not a timeseries.'
operationId: api_v2_technicals_dealer-hedging_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/Envelope_Any_'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/technicals/volume-spikes:
get:
tags:
- Technicals (v2)
summary: Api V2 Technicals Volume-Spikes Get
description: Get unusual volume spikes
operationId: api_v2_technicals_volume-spikes_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
default: 20
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Any_'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/technicals/momentum-divergence:
get:
tags:
- Technicals (v2)
summary: Api V2 Technicals Momentum-Divergence Get
description: Get momentum divergence signals
operationId: api_v2_technicals_momentum-divergence_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
default: SPY
title: Symbol
- name: timeframe
in: query
required: false
schema:
enum:
- 1min
- 5min
- 15min
- 1hr
- 1day
- 1hour
type: string
default: 1min
title: Timeframe
- name: window_units
in: query
required: false
schema:
type: integer
maximum: 90
minimum: 1
default: 20
title: Window Units
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_List_MomentumDivergencePoint__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Envelope_List_MomentumDivergencePoint__:
properties:
data:
items:
$ref: '#/components/schemas/MomentumDivergencePoint'
type: array
title: Data
freshness:
$ref: '#/components/schemas/Freshness'
type: object
required:
- data
- freshness
title: Envelope[List[MomentumDivergencePoint]]
Freshness:
properties:
evaluated_at:
type: string
format: date-time
title: Evaluated At
description: 'When the API evaluated this response (server wall clock, UTC). Endpoint-health signal: advances on every request even when the underlying data is unchanged.'
generated_at:
type: string
format: date-time
title: Generated At
description: When the served data was computed. Equals the snapshot stamp for cycle-backed endpoints, or evaluated_at for endpoints computed on demand for this request.
source_timestamp:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Source Timestamp
description: Timestamp of the upstream market observation the payload derives from. This is what freshness_status is measured against. Null when the endpoint has no upstream feed or returned no rows.
latest_event_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Latest Event At
description: Newest event timestamp present in the payload (last bar, last trade, last scored row). Best-effort on very large responses, which are sampled rather than fully walked.
age_seconds:
anyOf:
- type: number
- type: 'null'
title: Age Seconds
description: evaluated_at - source_timestamp, in seconds. Null when source_timestamp is null.
market_session_status:
type: string
title: Market Session Status
description: pre-market | regular | after-hours | closed (US/Eastern).
expected_update_cadence:
anyOf:
- type: string
- type: 'null'
title: Expected Update Cadence
description: ISO-8601 duration for how often this endpoint's data is expected to change right now, e.g. PT60S. Null means no updates are expected (weekend, holiday, or a feed that only runs during the session).
expected_update_cadence_seconds:
anyOf:
- type: number
- type: 'null'
title: Expected Update Cadence Seconds
description: expected_update_cadence as a number of seconds.
cadence_profile:
type: string
title: Cadence Profile
description: Identifier of the cadence class this endpoint belongs to, e.g. analytics_cycle. Stable across releases; the seconds behind it may be retuned.
stale_after:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Stale After
description: Instant after which this payload should be treated as stale. Null whenever expected_update_cadence is null.
freshness_status:
$ref: '#/components/schemas/FreshnessStatus'
description: fresh | aging | stale | session_closed | static | unknown.
type: object
required:
- evaluated_at
- generated_at
- market_session_status
- cadence_profile
- freshness_status
title: Freshness
description: The v2 freshness envelope. Present on every ``/api/v2/*`` response.
MomentumDivergencePoint:
properties:
timestamp:
type: string
format: date-time
title: Timestamp
symbol:
type: string
title: Symbol
price:
type: string
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
title: Price
chg_5m:
type: string
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
title: Chg 5M
opt_flow:
type: string
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
title: Opt Flow
divergence_signal:
type: string
title: Divergence Signal
type: object
required:
- timestamp
- symbol
- price
- chg_5m
- opt_flow
- divergence_signal
title: MomentumDivergencePoint
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
FreshnessStatus:
type: string
enum:
- fresh
- aging
- stale
- session_closed
- static
- unknown
title: FreshnessStatus
description: "The rolled-up freshness verdict for one response.\n\n``fresh``\n ``source_timestamp`` is within one expected update cadence.\n``aging``\n Past one cadence but not yet past ``stale_after`` — the grace band\n that absorbs normal cycle jitter. Not an error; a client that\n polls faster than the cadence sees this routinely.\n``stale``\n Past ``stale_after`` while updates *were* expected. This is the\n actionable state: the feed behind this endpoint is late.\n``session_closed``\n A feed-backed endpoint whose feed is not due to produce anything\n right now (weekend, holiday, or a feed that only runs during the\n session). The payload is the last good value — deliberately NOT\n reported as ``stale``, because an overnight consumer polling a\n closed market is not observing a fault and should not page on it.\n``static``\n The endpoint is not feed-backed at all: completed history, or a\n result computed from the caller's own inputs. Age here carries no\n health meaning and never becomes a fault.\n``unknown``\n No source timestamp could be resolved from the payload (e.g. a\n pure calculator, an admin endpoint, or an empty result set). A\n consumer should fall back to ``evaluated_at`` for endpoint health\n and make no claim about data age."
Envelope_Any_:
properties:
data:
title: Data
freshness:
$ref: '#/components/schemas/Freshness'
type: object
required:
- data
- freshness
title: Envelope[Any]
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
bearerFormat: API-Key