Skip to main content
GET
/
v1
/
export
/
trades.csv
Export Trades Csv
curl --request GET \
  --url https://api.polysimulator.com/v1/export/trades.csv \
  --header 'X-API-Key: <api-key>'
{
  "error": "<string>",
  "message": "<string>",
  "details": {},
  "request_id": "<string>"
}

Authorizations

X-API-Key
string
header
required

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

Headers

authorization
string | null
X-API-Key
string | null
POLY_API_KEY
string | null
Poly-API-Key
string | null

Query Parameters

wallet_id
integer | null

Scope to one wallet the caller owns (404 if not theirs). Omitted = fills across every wallet the caller owns.

from
string | null

Inclusive lower bound on filled_at. UTC ISO-8601 (2026-06-05T13:04:05Z) or YYYY-MM-DD. 422 if unparseable.

to
string | null

Inclusive upper bound on filled_at. UTC ISO-8601 or YYYY-MM-DD. 422 if unparseable.

market_id
string | null

Filter to a single market condition_id.

Response

Streamed RFC-4180 CSV of the caller's FILLED orders (one row per fill), newest first. Header row then data rows. UTC ISO-8601 timestamps; string-encoded numerics. Empty history → header-only.