Get VIP Margin Data
This margin data is for Unified account in particular.
info
Do not need authentication
HTTP Request
GET /v5/spot-margin-trade/data
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
vipLevel | false | string | Vip level |
currency | false | string | Coin name, uppercase only |
Response Parameters
Parameter | Type | Comments |
---|---|---|
vipCoinList | array | Object |
> list | array | Object |
>> borrowable | boolean | Whether it is allowed to be borrowed |
>> collateralRatio | string | Collateral ratio |
>> currency | string | Coin name |
>> hourlyBorrowRate | string | Borrow interest rate per hour |
>> liquidationOrder | string | Liquidation order |
>> marginCollateral | boolean | Whether it can be used as a margin collateral currency |
>> maxBorrowingAmount | string | Max borrow amount |
> vipLevel | string | Vip level |
Request Example
- HTTP
- Python
- Node.js
GET /v5/spot-margin-trade/data?vipLevel=No VIP¤cy=BTC HTTP/1.1
Host: api-testnet.bybit.com
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getVIPMarginData({
vipLevel: 'No VIP',
currency: 'BTC',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"vipCoinList": [
{
"list": [
{
"borrowable": true,
"collateralRatio": "0.95",
"currency": "BTC",
"hourlyBorrowRate": "0.0000015021220000",
"liquidationOrder": "11",
"marginCollateral": true,
"maxBorrowingAmount": "3"
}
],
"vipLevel": "No VIP"
}
]
}
}