get_closed_pnl
Retrieve closed profit and loss records for linear or inverse products, filtered by symbol, time range, and pagination.
Instructions
Query closed profit and loss records.
Args:
category: Product type - linear, inverse
symbol: Symbol name
startTime: Start timestamp in milliseconds
endTime: End timestamp in milliseconds
limit: Limit per page (max 100, default 50)
cursor: Pagination cursor
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": {
"category": "<category>"
},
"name": "get_closed_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| symbol | No | ||
| endTime | No | ||
| category | Yes | ||
| startTime | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |