get_closed_pnl
Retrieve historical profit and loss data for closed positions on Bybit to analyze trading performance and prepare tax reports.
Instructions
Get historical profit and loss data for closed positions. Useful for performance analysis and tax reporting.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Product category to query closed PnL for | |
| symbol | No | Specific trading pair to get PnL for. Leave empty to get all closed PnL in category | |
| startTime | No | Start timestamp in milliseconds for PnL query | |
| endTime | No | End timestamp in milliseconds for PnL query | |
| limit | No | Maximum number of records to return (1-100) | |
| cursor | No | Pagination cursor for next page of results |