跳至主要内容

查詢借貸帳戶信息

覆蓋範圍: 全倉槓桿 (經典帳戶)

HTTP 請求

GET /v5/spot-cross-margin-trade/account

請求參數

響應參數

參數類型說明
acctBalanceSumstring總資產 (折算成BTC)
debtBalanceSumstring總負債 (折算成BTC)
loanAccountListarrayObject
> freestring可用餘額
> intereststring未還利息
> loanstring未還本金
> remainAmountstring總未還金額 = 未還利息 + 未還本金
> lockedstring鎖定金額
> tokenIdstring幣種
> totalstring合計
riskRatestring風險率
statusinteger借貸帳戶狀態
  • 1: 正常
  • 2: 限制提幣/劃轉
  • 3: 預警
  • 4: 已爆倉
switchStatusinteger全倉槓桿狀態 0: 關閉, 1: 開啟

請求示例

GET /v5/spot-cross-margin-trade/account HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677751305868
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"acctBalanceSum": "0.455189592150138021",
"debtBalanceSum": "0",
"loanAccountList": [
{
"free": "0.01444",
"interest": "0",
"loan": "0",
"locked": "0",
"remainAmount": "0",
"tokenId": "BTC",
"total": "0.01444"
},
{
"free": "0.21147048",
"interest": "0",
"loan": "0",
"locked": "0",
"remainAmount": "0",
"tokenId": "ETH",
"total": "0.21147048"
},
{
"free": "7963.58978991849",
"interest": "0",
"loan": "0",
"locked": "0",
"remainAmount": "0",
"tokenId": "USDT",
"total": "7963.58978991849"
},
{
"free": "1380.28832",
"interest": "0",
"loan": "0",
"locked": "0",
"remainAmount": "0",
"tokenId": "USDC",
"total": "1380.28832"
}
],
"riskRate": "0",
"status": 1,
"switchStatus": 1
},
"retExtInfo": {},
"time": 1677751306287
}