Export Trades Csv
Export the caller’s FILLED trades as a streamed CSV.
Auth: dashboard session (Supabase JWT) or a ps_live_/ps_test_
API key. FILLED-only (status='FILLED' and filled_at IS NOT NULL).
Keyset-paginated under the hood (filled_at DESC, id DESC) and streamed
in batches so deep histories don’t materialise in memory. Capped at
EXPORT_MAX_ROWS per request.
Authorizations
Issue from /v1/keys (or admin-issued for enterprise tier).
Headers
Query Parameters
Scope to one wallet the caller owns (404 if not theirs). Omitted = fills across every wallet the caller owns.
Inclusive lower bound on filled_at. UTC ISO-8601 (2026-06-05T13:04:05Z) or YYYY-MM-DD. 422 if unparseable.
Inclusive upper bound on filled_at. UTC ISO-8601 or YYYY-MM-DD. 422 if unparseable.
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.