ZeroGEX TradeWorkz (v2) API
The TradeWorkz (v2) API from ZeroGEX, for tradeworkz (v2).
The TradeWorkz (v2) API from ZeroGEX, for tradeworkz (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-tradeworkz-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 TradeWorkz (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: TradeWorkz (v2)
paths:
/api/v2/tradeworkz/summary:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Summary Get
description: 'Fleet-wide snapshot used by the /trading-signals hero row.
Returns total fleet capital, total realized P&L today, count of live
positions, best-performing bot 24h, and total number of bots.'
operationId: api_v2_tradeworkz_summary_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
security:
- HTTPBearer: []
/api/v2/tradeworkz/bots:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Get
description: Fleet roster + per-bot lifetime performance snapshot.
operationId: api_v2_tradeworkz_bots_get
security:
- HTTPBearer: []
parameters:
- name: tier
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Filter by tier
title: Tier
description: Filter by tier
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/leaderboard:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Leaderboard Get
description: Ranked list of bots by return over ``period``.
operationId: api_v2_tradeworkz_leaderboard_get
security:
- HTTPBearer: []
parameters:
- name: period
in: query
required: false
schema:
type: string
pattern: ^(1d|7d|30d|365d|all)$
default: all
title: Period
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/bots/{bot_id}:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Bot Id Get
operationId: api_v2_tradeworkz_bots_bot_id_get
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: path
required: true
schema:
type: string
title: Bot Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/bots/{bot_id}/trades:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Bot Id Trades Get
operationId: api_v2_tradeworkz_bots_bot_id_trades_get
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: path
required: true
schema:
type: string
title: Bot Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 100
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/bots/{bot_id}/equity-curve:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Bot Id Equity-Curve Get
operationId: api_v2_tradeworkz_bots_bot_id_equity-curve_get
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: path
required: true
schema:
type: string
title: Bot Id
- name: days
in: query
required: false
schema:
type: integer
maximum: 730
minimum: 1
default: 90
title: Days
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/equity-curves:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Equity-Curves Get
description: 'Bundled equity curves for every enabled bot.
The dashboard''s fleet-overview chart overlays every bot on one axis, so
one round-trip returning all curves beats N parallel requests — both for
latency (single DB scan on the bot_id-indexed table) and for the React
hook rules (no dynamic hook-in-loop on the client).'
operationId: api_v2_tradeworkz_equity-curves_get
security:
- HTTPBearer: []
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 730
minimum: 1
default: 90
title: Days
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/performance-trend:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Performance-Trend Get
description: 'Fleet performance TREND — the slope, not the since-inception level.
The ``/summary`` hero (``current/starting - 1``) is cumulative from
inception, so it stays anchored to the pre-fix drawdown and to any large
loss that settled late, and it hides whether performance is *improving*.
This returns the per-session P&L series with a cumulative line rebased to
the window start, rolling win rate / profit factor / expectancy over the
requested windows, a SPY buy-hold benchmark over the same sessions, and the
dated change-log inflections for chart annotations. ``headline`` carries the
latest rolling values — the number that should front the dashboard instead
of the since-inception NAV. Sessions are the ET trading day (``closed_at``
bucketed in America/New_York), matching the rest of the fleet''s accounting.'
operationId: api_v2_tradeworkz_performance-trend_get
security:
- HTTPBearer: []
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 5
default: 30
title: Days
- name: windows
in: query
required: false
schema:
type: string
description: Rolling window sizes, comma-separated
default: 5,10,20
title: Windows
description: Rolling window sizes, comma-separated
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/bots/{bot_id}/metrics:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Bot Id Metrics Get
operationId: api_v2_tradeworkz_bots_bot_id_metrics_get
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: path
required: true
schema:
type: string
title: Bot Id
- name: days
in: query
required: false
schema:
type: integer
maximum: 730
minimum: 1
default: 90
title: Days
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/positions:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Positions Get
description: Every open position the fleet holds, live engine entries only.
operationId: api_v2_tradeworkz_positions_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
security:
- HTTPBearer: []
/api/v2/tradeworkz/trades:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Trades Get
description: 'Every closed trade, live engine entries only, newest first.
The filters, paging, summary and CSV of ``/admin/trades``, except
``origin``: it is always ``live``, so seeder rows never reach a member.'
operationId: api_v2_tradeworkz_trades_get
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Bot Id
- name: since
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: ISO-8601 timestamp; only trades closed on/after this.
title: Since
description: ISO-8601 timestamp; only trades closed on/after this.
- name: until
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: ISO-8601 timestamp; only trades closed before this.
title: Until
description: ISO-8601 timestamp; only trades closed before this.
- name: limit
in: query
required: false
schema:
type: integer
maximum: 2000
minimum: 1
default: 200
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: format
in: query
required: false
schema:
type: string
pattern: ^(json|csv)$
default: json
title: Format
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/tradeworkz/me/follows:
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Me Follows Get
operationId: api_v2_tradeworkz_me_follows_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
security:
- HTTPBearer: []
/api/v2/tradeworkz/bots/{bot_id}/follow:
post:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Bot Id Follow Post
operationId: api_v2_tradeworkz_bots_bot_id_follow_post
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: path
required: true
schema:
type: string
title: Bot Id
requestBody:
content:
application/json:
schema:
type: object
additionalProperties: true
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Bots Bot Id Follow Delete
operationId: api_v2_tradeworkz_bots_bot_id_follow_delete
security:
- HTTPBearer: []
parameters:
- name: bot_id
in: path
required: true
schema:
type: string
title: Bot Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/tradeworkz/me/feed:
delete:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Me Feed Delete
description: 'Delete every ``in_app`` notification row belonging to the caller.
Only touches the ``in_app`` channel — pending ``email`` / ``webhook``
rows the delivery worker hasn''t shipped yet are left in place so a
"clear my inbox" gesture on the dashboard doesn''t accidentally
cancel a queued email. Returns the number of rows deleted.'
operationId: api_v2_tradeworkz_me_feed_delete
security:
- HTTPBearer: []
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
get:
tags:
- TradeWorkz (v2)
summary: Api V2 Tradeworkz Me Feed Get
operationId: api_v2_tradeworkz_me_feed_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope_Dict_str__Any__'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Envelope_Dict_str__Any__:
properties:
data:
additionalProperties: true
type: object
title: Data
freshness:
$ref: '#/components/schemas/Freshness'
type: object
required:
- data
- freshness
title: Envelope[Dict[str, Any]]
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.
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