Get Interest & Quota
Covers: Margin trade (Classic Account)
HTTP Request
GET /v5/spot-cross-margin-trade/loan-info
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | true | string | Coin name |
Response Parameters
Parameter | Type | Comments |
---|---|---|
coin | string | Coin name |
interestRate | string | Daily interest rate |
loanAbleAmount | string | The estimated amount can be loaned |
maxLoanAmount | string | The fixed loanable amount per user on platform |
Request Example
- 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",
))
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"coin": "ETH",
"interestRate": "0.000054835",
"loanAbleAmount": "19.220442066850037795",
"maxLoanAmount": "300"
},
"retExtInfo": {},
"time": 1677750929290
}