Market trade history — bulk export
Onchain V2 (legacy)
Trade History (Market) — Bulk
Return every trade for a market token in a single response. Growth plan or above.
GET
Market trade history — bulk export
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. Acondition_idvariant that returns both tokens in one call is on the roadmap. partial: trueresults are not cached. Subsequent calls re-attempt the full walk. Tighten the time window withfrom/toif you keep hitting the cap.- Cache key is
(token_id, from_ts, to_ts). Different windows are cached independently. Default-window calls (nofrom/to) share a cache slot. - The walk is parallelized — total bandwidth use is moderate even for huge markets.

