Trade History
https://api.unhedged.gg /api/v1/tradesReturns 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 requestRequest
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
marketIdstring- Optional market filter.
limitnumber- Page size, 1-500. Default 100.
cursorstring- Previous trades nextCursor. Omit on page 1.
burnsCursorstring- Previous burnsNextCursor. Omit on page 1.
startTimestring- 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.
endTimestring- Optional inclusive upper bound on execution time (transact_ts). Same formats as startTime. Must not be before startTime.
Authorization
Authorization: Bearer ak_your_key_hereQuery parameters
curl https://api.unhedged.gg/api/v1/trades \
-H "Authorization: Bearer ak_your_key_here" {
"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",