查詢利率及額度
覆蓋範圍: 全倉槓桿 (經典帳戶)
HTTP 請求
GET /v5/spot-cross-margin-trade/loan-info
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
coin | true | string | 幣種名稱 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
coin | string | 幣種名稱 |
interestRate | string | 基礎日利率 |
loanAbleAmount | string | 預估可借最大金額 |
maxLoanAmount | string | 平台設置的用戶最大可借金額 |
請求示例
- HTTP
- Python
GET /v5/spot-cross-margin-trade/loan-info?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677750928871
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.spot_margin_trade_normal_get_interest_quota(
coin="ETH",
))
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"coin": "ETH",
"interestRate": "0.000054835",
"loanAbleAmount": "19.220442066850037795",
"maxLoanAmount": "300"
},
"retExtInfo": {},
"time": 1677750929290
}