Skip to content
UNHEDGED / DOCS

Search documentation

Browse docs or start typing to find a topic

↑ ↓ to navigate Enter to open Esc to close

Trade History

GET https://api.unhedged.gg/api/v1/trades

Returns fills from newest to oldest. Omit cursors on page 1. Pass nextCursor as cursor and burnsNextCursor as burnsCursor. Stop each stream when its cursor is null. Use startTime/endTime to bound a time window. One row is one order leg, not one match: a regular trade writes 2 legs (aggressive + passive) and a cross trade writes N (1 aggressive + N-1 passives, N = outcomes in the market), all sharing one trade_id, and trade_id restarts at 1 in every market — dedup on fill_id (burns: burn_uid), never on trade_id or burn_id, and count matches as distinct market_id + trade_id. Rows expose numeric order IDs only — no client_order_id mapping; absence from open orders does not prove a timed-out placement never executed.

Configure request

Request

Security · Bearer token

Send your API key in the Authorization header. Required scope order:read.

Rate limit · 240 req/min shared with order reads (default)

Query parameters

marketId string
Optional market filter.
limit number
Page size, 1-500. Default 100.
cursor string
Previous trades nextCursor. Omit on page 1.
burnsCursor string
Previous burnsNextCursor. Omit on page 1.
startTime string
Optional inclusive lower bound on execution time (transact_ts). ISO 8601 date-time, or Unix epoch milliseconds if all digits. Applies to trades and burns.
endTime string
Optional inclusive upper bound on execution time (transact_ts). Same formats as startTime. Must not be before startTime.
Authorization
Bearer token Authorization: Bearer ak_your_key_here
Query parameters
curl https://api.unhedged.gg/api/v1/trades \
  -H "Authorization: Bearer ak_your_key_here"
Response
{
  "trades": [
    {
      "fill_id": "clx...:184221:213",
      "market_id": "clx...",
      "trade_id": "184221",
      "order_id": "213",
      "exec_id": "42",
      "outcome": "YES",
      "side": "bid",
      "trade_type": "direct",
      "role": "taker",