ZeroGEX Scorecard API
The Scorecard API from ZeroGEX, for scorecard.
The Scorecard API from ZeroGEX, for scorecard.
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-scorecard-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 Scorecard 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: Scorecard
paths:
/api/scorecard/daily:
get:
tags:
- Scorecard
summary: Get Daily Scorecard
description: 'One trading day''s aggregate of the engine''s output.
Combines three reads — persisted Action Cards, per-signal flip events
with realized return at ``horizon_minutes``, and the closing MSI regime —
into a single payload sized for the public ``/scorecard/{date}`` page
and the auto-tweet job.
**Params:**
- ``date`` — YYYY-MM-DD; defaults to today in America/New_York.
- ``symbol`` — underlying (default ``SPY``).
- ``horizon_minutes`` — forward window for ``realized_return`` (5–240, default 60).
The forward price is bounded to the same regular session: a flip within
this many minutes of the close counts in ``flips`` but not in ``scored``,
and contributes nothing to ``avg_directional_return``. Grading it against
an after-hours print (or, on a Friday, the next Monday''s open) is what
made ``eod_pressure`` — which can only fire in the last 90 minutes —
report a meaningless number for every session.
**Returns:**
```json
{
"date": "2026-06-29",
"symbol": "SPY",
"tz": "America/New_York",
"horizon_minutes": 60,
"cards": {
"total": 12,
"by_action": [{"action": "SELL_CALL_SPREAD", "count": 4}, ...],
"first_card_id": 4221,
"first_card_permalink": "/cards/4221",
"items": [
{"id": 4221, "timestamp": "2026-06-29T13:42:00+00:00",
"pattern": "call_wall_fade", "action": "SELL_CALL_SPREAD",
"tier": "0DTE", "direction": "bearish", "confidence": 0.68,
"permalink": "/cards/4221"},
...
]
},
"signals": {
"events": [{"name": "...", "flips": 3, "wins": 2, "losses": 1,
"avg_directional_return": 0.0042}, ...],
"best": {"name": "squeeze_setup", "avg_directional_return": 0.0074, "wins": 2, "losses": 1, "flips": 3},
"worst": {"name": "vanna_charm_flow", "avg_directional_return": -0.0031, "wins": 1, "losses": 2, "flips": 3}
},
"regime": {"timestamp": "...", "composite_score": -0.28, "label": "short gamma"},
"tweet_text": "SPY · 2026-06-29 — 12 Playbook calls. Best: Squeeze Setup +0.74%. Worst: Vanna Charm Flow −0.31%. Regime: short gamma. https://zerogex.io/scorecard/2026-06-29",
"is_empty": false
}
```
``tweet_text`` is the canonical one-line summary the auto-tweet job
uses verbatim; computing it server-side keeps wording consistent
across the OG card, the page header, and the X/Discord tweet.
Returns ``is_empty: true`` with zeroed sections when no cards were
emitted and no flip events occurred (typical for non-trading days or
pre-launch dates).'
operationId: get_daily_scorecard_api_scorecard_daily_get
security:
- HTTPBearer: []
parameters:
- name: date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Trading day in YYYY-MM-DD; defaults to today (America/New_York).
title: Date
description: Trading day in YYYY-MM-DD; defaults to today (America/New_York).
- name: symbol
in: query
required: false
schema:
type: string
maxLength: 10
default: SPY
title: Symbol
- name: horizon_minutes
in: query
required: false
schema:
type: integer
maximum: 240
minimum: 5
default: 60
title: Horizon Minutes
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/scorecard/signal-record:
get:
tags:
- Scorecard
summary: Get Signal Trailing Record
description: 'Per-signal flip record over the last ``sessions`` trading days.
The daily scorecard is one calendar day, which cannot answer "is this
signal any good" — the question a subscriber actually asks after a signal
calls one session correctly. This is the same flip definition and the same
session-bounded forward return, aggregated over a window.
**Params:**
- ``symbol`` — underlying (default ``SPY``).
- ``sessions`` — trailing weekdays to cover (2–120, default 30).
- ``horizon_minutes`` — forward window (5–240, default 60).
- ``signal`` — one signal name; omit for all of them.
**Returns:** ``signals[]`` with ``flips``, ``scored``, ``wins``,
``losses``, ``win_rate`` and ``avg_directional_return`` per name.
``scored`` can be lower than ``flips``, and ``win_rate`` is ``null`` when
nothing was scorable. A signal that only fires near the close
(``eod_pressure``) can have many flips and few scorable ones; that is the
honest shape of the measurement, not a defect to paper over.'
operationId: get_signal_trailing_record_api_scorecard_signal_record_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
maxLength: 10
default: SPY
title: Symbol
- name: sessions
in: query
required: false
schema:
type: integer
maximum: 120
minimum: 2
default: 30
title: Sessions
- name: horizon_minutes
in: query
required: false
schema:
type: integer
maximum: 240
minimum: 5
default: 60
title: Horizon Minutes
- name: signal
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Single signal name; omit for every Basic + Advanced signal.
title: Signal
description: Single signal name; omit for every Basic + Advanced signal.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/scorecard/sessions:
get:
tags:
- Scorecard
summary: List Scorecard Sessions
description: 'Recent trading days that have a scorecard, newest first.
Backs the /scorecard landing page. Mirrors the ``/api/replay/sessions``
and ``/api/forecast/available-dates`` contract — ``{symbol, count,
sessions: []}`` with enough per-date metadata (Playbook call count and the
labeled closing regime) that a card renders without a fetch per day.
Empty ``sessions`` means the engine has never written for that symbol, not
an error.'
operationId: list_scorecard_sessions_api_scorecard_sessions_get
security:
- HTTPBearer: []
parameters:
- name: symbol
in: query
required: false
schema:
type: string
maxLength: 10
default: SPY
title: Symbol
- name: limit
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 1
default: 60
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
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
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
bearerFormat: API-Key