My trade history for a token
get_my_closed_tradesEach closed buy and sell cycle for one token, with fills and tx hashes. Newest first; each cycle has fills (timestamp, side, price_usd, token_amount, usd_amount, tx_hash; include_fills=false skips them) and your rationale. ONE TOKEN AT A TIME: token_address is required; for the whole history use get_my_closed_positions. Choosing between the two history tools: get_my_closed_positions is the POSITION-level rollup — one entry per token the user entered and fully exited, with total realised PnL. get_my_closed_trades is the individual TRADES underneath, one entry per fill. Use positions for 'how did I do on X', trades for 'show me every trade'. get_my_closed_positions is exited positions ONLY; what the user holds now is get_my_balances. Never say they hold nothing from an empty closed list.
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": {
"token_address": "<token_address>"
},
"name": "get_my_closed_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| limit | No | Closed cycles per page, 1-100. | |
| include_fills | No | Attach every buy/sell leg (`fills`, with tx hashes). Default true. | |
| token_address | Yes | Contract address of the ONE token to show trades for. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||