Skip to main content

Get Liquidation Records

info
  • Need authentication. Up to 10 requests per second per UID. Requires Earn permission on the API key.
  • Returns historical liquidation records for your leveraged liquidity mining positions.

HTTP Request​

GET/v5/earn/liquidity-mining/liquidation-records

Request Parameters​

ParameterRequiredTypeComments
baseCoinfalsestringFilter by base coin, e.g. BTC, ETH
quoteCoinfalsestringFilter by quote coin, e.g. USDT
startTimefalsestringStart time, unix timestamp in milliseconds
endTimefalsestringEnd time, unix timestamp in milliseconds
limitfalseintegerNumber of items per page. Default: 20, Max: 50
cursorfalsestringPagination cursor. Use nextPageCursor from the previous response

Response Parameters​

ParameterTypeComments
recordsarrayLiquidation record list
> baseCoinstringBase coin of the pool, e.g. BTC
> quoteCoinstringQuote coin of the pool, e.g. USDT
> baseAmountstringReturned baseCoin amount after liquidation
> quoteAmountstringReturned quoteCoin amount after liquidation
> liquidationPricestringLiquidation price (baseCoin priced in quoteCoin)
> liquidationTimestringLiquidation time, unix timestamp in milliseconds
nextPageCursorstringCursor for next page. Empty string means no more data

Request Example​

GET /v5/earn/liquidity-mining/liquidation-records?baseCoin=BTC&limit=20 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1741651200000
X-BAPI-RECV-WINDOW: 5000

Response Example​

{
"retCode": 0,
"retMsg": "OK",
"result": {
"records": [
{
"baseCoin": "BTC",
"quoteCoin": "USDT",
"baseAmount": "0.05234",
"quoteAmount": "1580.21",
"liquidationPrice": "30200.00",
"liquidationTime": "1741824000000"
}
],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1741824100000
}