Skip to main content
GET
Market trade history — bulk export
Growth plan or above only. This endpoint returns the entire trade history for a market token in one response — no client-side pagination, no offset bookkeeping. Because a single call can return tens of thousands of fills (and tens of MB of JSON), it’s gated to the Growth plan and above. Starter and free tier requests receive 403.
  • Hard cap: 250,000 trades per call — beyond that, response includes "partial": true with "partial_reason": "hard_cap_250000"
  • Wall-clock budget: 180 seconds — first cold-cache call on a busy market may take 1-3 minutes
  • Cache: full results cached 5 minutes. Repeat calls return in under 1 second
  • Typical payload: 1-50 MB. Worst case (capped): 100-200 MB JSON
Returns every onchain trade fill for one market token in a single response. The server walks the full trade history with parallel time-bucketed queries server-side — you don’t need to paginate. Each trade is enriched with market metadata. This is the right endpoint when you want bulk-export a market for analysis, indexing, or backtesting. For interactive UIs that just need the most recent N fills, use the standard Market Trade History instead.

Request

Response

Response fields

Trade fields

Example: full lifetime of a market

Example: window inside a longer-running market

Errors

403 Tier required:
401 No API key:

Notes

  • For a multi-token market (binary YES/NO), call this endpoint twice — once per token_id. A condition_id variant that returns both tokens in one call is on the roadmap.
  • partial: true results are not cached. Subsequent calls re-attempt the full walk. Tighten the time window with from/to if you keep hitting the cap.
  • Cache key is (token_id, from_ts, to_ts). Different windows are cached independently. Default-window calls (no from/to) share a cache slot.
  • The walk is parallelized — total bandwidth use is moderate even for huge markets.

Path Parameters

token_id
string
required

CTF token ID

Query Parameters

from
integer

Optional unix timestamp lower bound

to
integer

Optional unix timestamp upper bound

Response

Full trade history