Skip to main content

Get Liability Info

HTTP Request

GET/v5/spot-margin-trade/liability

Request Parameters

ParameterRequiredTypeComments
currencytruestringCoin name, uppercase only

Response Parameters

ParameterTypeComments
currencystringCoin name, uppercase only
totalBorrowAmountstringTotal liability = borrowSize
fixedBorrowAmountstringFixed-rate liability
flexibleBorrowAmountstringFloating-rate liability = borrowSize - fixedBorrowAmount
spotTotalBorrowstringSpot liability + open order liability
derivativesBorrowstringDerivatives liability = borrowSize - spotBorrow - reservation

Request Example

GET /v5/spot-margin-trade/liability?currency=BTC HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1692696840996
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "Success",
"result": {
"currency": "BTC",
"totalBorrowAmount": "0.05000000",
"fixedBorrowAmount": "0.02000000",
"flexibleBorrowAmount": "0.03000000",
"spotTotalBorrow": "0.04000000",
"derivativesBorrow": "0.01000000"
},
"retExtInfo": {},
"time": 1756273388821
}