Skip to main content

Get USDC Session Settlement

Query session settlement records of USDC perpetual and futures

HTTP Request

GET /v5/asset/settlement-record

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type
  • UTA2.0: linear(USDC contract)
  • UTA1.0: linear(USDC contract)
  • symbolfalsestringSymbol name, like BTCPERP, uppercase only
    startTimefalseintegerThe start timestamp (ms)
    • startTime and endTime are not passed, return 30 days by default
    • Only startTime is passed, return range between startTime and startTime+30 days
    • Only endTime is passed, return range between endTime-30 days and endTime
    • If both are passed, the rule is endTime - startTime <= 30 days
    endTimefalseintegerThe end time. timestamp (ms)
    limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
    cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

    Response Parameters

    ParameterTypeComments
    categorystringProduct type
    listarrayObject
    > symbolstringSymbol name
    > sidestringBuy,Sell
    > sizestringPosition size
    > sessionAvgPricestringSettlement price
    > markPricestringMark price
    > realisedPnlstringRealised PnL
    > createdTimestringCreated time (ms)
    nextPageCursorstringRefer to the cursor request parameter

    Request Example

    GET /v5/asset/settlement-record?category=linear HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXX
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1672284883483
    X-BAPI-RECV-WINDOW: 5000

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "nextPageCursor": "116952%3A1%2C116952%3A1",
    "category": "linear",
    "list": [
    {
    "realisedPnl": "-71.28",
    "symbol": "BTCPERP",
    "side": "Buy",
    "markPrice": "16620",
    "size": "1.5",
    "createdTime": "1672214400000",
    "sessionAvgPrice": "16620"
    }
    ]
    },
    "retExtInfo": {},
    "time": 1672284884285
    }