跳至主要内容

查詢余幣寶帳戶信息

HTTP 請求

GET /v5/lending/account

請求參數

參數是否必需類型說明
cointruestring幣種名稱

響應參數

參數類型說明
coinstring幣種名稱
principalIntereststring可贖回收益
principalQtystring可贖回本金金額, 計算公式: min(用戶剩餘本金, 用戶當日可贖回額度)
principalTotalstring可贖回總計
quantitystring當前存入本金

請求示例

GET /v5/lending/account?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1682049556563
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "OK",
"result": {
"coin": "BTC",
"principalInterest": "0",
"principalQty": "1",
"principalTotal": "1",
"quantity": "1"
},
"retExtInfo": {},
"time": 1682049706988
}