跳至主要内容

查詢負債信息

HTTP 請求

GET/v5/spot-margin-trade/liability

請求參數

參數是否必需類型說明
currencytruestring幣名稱,僅限大寫

響應參數

參數類型說明
currencystring幣名稱,僅限大寫
totalBorrowAmountstring總負債 = borrowSize
fixedBorrowAmountstring固定利率負債
flexibleBorrowAmountstring活期利率負債 = borrowSize - fixedBorrowAmount
spotTotalBorrowstring現貨負債 + 掛單負債
derivativesBorrowstring衍生品負債 = borrowSize - spotBorrow - reservation

請求示例

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

響應示例

{
"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
}