My closed positions (realized PnL)
get_my_closed_positionsPositions the user fully exited, with realized PnL. 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. An empty result says nothing about what they hold today. 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'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_my_closed_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| limit | No | Positions per page, 1-100. Keep it small. | |
| token_address | No | Restrict to closed positions in one token. Omit for all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||