v1

latestOpenAPI 3.1.0Proprietary2026-07-2265155163.6 KB
Trader

Get user trade history v2

Handles GET /v1/users/{user_pubkey}/trades_v2 via get.v1.users.by_user_pubkey.trades_v2.

get/v1/users/{user_pubkey}/trades_v2

Path parameters

user_pubkeystring required

Query parameters

market_symbolstring

Optional market symbol to filter by (e.g., "SOL-PERP")

trader_pda_indexinteger

Optional trader PDA index to scope results for a specific trader PDA

limitinteger

Number of items to return (max 1000)

cursorstring

Optional cursor for pagination (format: "slot" or "slot,slot_index") Items returned will be older than (exclusive of) this cursor

privy_idstring

Privy user ID (optional)

Response

hasMoreboolean required

Whether there are more results available after this page

nextCursorstring nullable

Opaque cursor for fetching the next page of older results. Pass this value as the cursor parameter in the next request to load more.

prevCursorstring nullable

Opaque cursor for fetching newer items (for polling). Pass this value as the cursor parameter to get items newer than the first item in data.