get_trade_history
Retrieve successful spot trades for a GDEX account on a specified chain, newest first, with pagination by limit and cursor.
Instructions
Successful spot trades of a GDEX account on one chain, newest first (/v1/user_history, keyed by the control wallet). Page with limit (max 50) and cursor = nextCursor of the previous page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain identifier | |
| limit | No | Trades per page, 1-50 (default 50) | |
| cursor | No | nextCursor from the previous page | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| walletAddress | No | Control wallet address (the GDEX userId) | |
| sessionPrivateKey | No | Not needed (history is keyed by the control wallet); present so accountRef can fill walletAddress |