get_closed_pnl
Retrieve realized profit and loss history for closed positions, including entry and exit prices and actual PnL. Use filters like symbol, category, and time range to analyze trading performance.
Instructions
Get realized profit and loss history from closed positions. Shows entry/exit prices and actual PnL. Auth required.
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_closed_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results (default: 50, max: 100) | |
| cursor | No | Pagination cursor | |
| symbol | No | Trading pair symbol | |
| endTime | No | End timestamp in ms | |
| category | No | Product category | linear |
| startTime | No | Start timestamp in ms |