Trade History
Authentication
API key only βX-API-Key: <key> (or the PM-compat POLY_API_KEY /
Authorization: Bearer ps_live_... aliases). A Supabase Bearer JWT is not
accepted here.
Query Parameters
Request
Response
Orders are returned most-recent first (descendingfilled_at).
Polymarket parity: PolySimulator fills paper orders instantly, so the
status here is the simulatorβs order status (FILLED), not Polymarketβs
on-chain trade lifecycle (MATCHED β MINED β CONFIRMED, with RETRYING /
FAILED). There is no settlement-finality state to track for simulated
trades. If you are porting a Polymarket SDK, treat FILLED as equivalent to
a terminal CONFIRMED trade.envelope=true the rows are wrapped Polymarket-style, with a real cursor:
next_cursor is the next offset value (as a string) when a full page was
returned; it is "" when the page was short (no more rows).
Errors
All errors return{"error": "<CODE>", "message": "<human-readable>"}.
Next Steps
- Equity Curve β Visualize portfolio value over time
- Portfolio β Aggregate portfolio snapshot