Skip to main content
GET
/
v1
/
data
/
trades
List user trades (PM-compat — reads from filled orders).
curl --request GET \
  --url https://api.polysimulator.com/v1/data/trades \
  --header 'X-API-Key: <api-key>'
{
  "limit": 123,
  "count": 123,
  "next_cursor": "<string>",
  "data": [
    {
      "id": "<string>",
      "market": "<string>",
      "side": "<string>",
      "outcome": "<string>",
      "price": "<string>",
      "size": "<string>",
      "last_update": 123,
      "match_time": 123,
      "status": "<string>",
      "asset_id": "<string>",
      "fee_rate_bps": 0,
      "maker_orders": [
        "<string>"
      ],
      "taker_order_id": "<string>",
      "transaction_hash": "<string>",
      "bucket_index": 123,
      "owner": "<string>",
      "trader_side": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Issue from /v1/keys (or admin-issued for enterprise tier).

Headers

X-API-Key
string | null

Your PolySimulator API key

POLY_API_KEY
string | null

Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.

Poly-API-Key
string | null

PM-CLOB-compat dashed-form alias for X-API-Key. Same value semantics as POLY_API_KEY but with HTTP-conventional dash separators. Audit P1 (staging audit 2026-05-16 0817 PR #1296): the per-tier middleware accepts both spellings but the auth dependency originally only matched the underscore form — now both work end-to-end.

authorization
string | null

PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.

Query Parameters

market
string | null
asset_id
string | null
before
string | null
after
string | null
cursor
string | null
next_cursor
string | null

PM's documented pagination REQUEST param — pass the next_cursor value from the previous response here (py-clob-client does this automatically). cursor is accepted as a polysim alias; when both are present cursor wins. The SDK's initial sentinel MA== (base64 of 0) means 'start from the beginning'.

limit
integer
default:100

Response

Successful Response

PM GET /data/trades pagination envelope.

limit
integer
required
count
integer
required
next_cursor
string
required
data
PmTradeRow · object[]
required