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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>"
},
"name": "get_trade_history"
}
}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 |