Skip to main content

Get Pre-upgrade USDC Session Settlement

Query session settlement records of USDC perpetual before you upgrade the account to Unified account.

  • UTA2.0:
    By category=option, you can query USDC Perps settlement data occurred during classic account

  • UTA1.0:
    By category=option, you can query USDC Perps settlement data occurred during classic account

info

USDC Perpeual support the recent 6 months data. Please download older data via GUI

HTTP Request

GET /v5/pre-upgrade/asset/settlement-record

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type linear
symbolfalsestringSymbol name, like BTCUSDT, uppercase only
limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
cursorfalsestringCursor. Used for pagination

Response Parameters

ParameterTypeComments
categorystringProduct type
listarrayObject
> symbolstringSymbol name
> sidestringBuy,Sell
> sizestringPosition size
> sessionAvgPricestringSettlement price
> markPricestringMark price
> realisedPnlstringRealised PnL
> createdTimestringCreated time (ms)
nextPageCursorstringCursor. Used for pagination

Request Example

GET /v5/pre-upgrade/asset/settlement-record?category=linear&symbol=ETHPERP&limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1686809850982
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"nextPageCursor": "25%3A0%2C25%3A0",
"category": "linear",
"list": [
{
"realisedPnl": "45.76",
"symbol": "ETHPERP",
"side": "Sell",
"markPrice": "1668.44",
"size": "-0.5",
"createdTime": "1686787200000",
"sessionAvgPrice": "1668.41"
}
]
},
"retExtInfo": {},
"time": 1686809851749
}