getClosedPnl
Retrieve your closed profit and loss records from Bybit, filtered by symbol and time range, with results sorted newest first. Supports up to 2 years of data.
Instructions
Query user's closed profit and loss records. The results are sorted by createdTime in descending order.
Unified account covers: USDT perpetual / USDC contract
Time range rules:
Without both
startTimeandendTime: returns last 7 days by defaultOnly
startTimeprovided: returns from startTime to startTime + 7 daysOnly
endTimeprovided: returns from endTime - 7 days to endTimeBoth provided: endTime - startTime must be <= 7 days
Data retention: Up to 2 years
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| symbol | No | ||
| endTime | No | ||
| category | Yes | ||
| startTime | No |