Skip to main content

Get Margin Coin Info

HTTP Request

GET /v5/ins-loan/ensure-tokens

Request Parameters

ParameterRequiredTypeComments
productIdfalsestringProductId. If not passed, then return all product margin coin. For spot, it returns coin that convertRation greater than 0.

Response Parameters

ParameterTypeComments
marginTokenarrayObject
> productIdstringProduct Id
> spotTokenarraySpot margin coin
>> tokenstringMargin coin
>> convertRatiostringMargin coin convert ratio
> contractTokenarrayContract margin coin
>> tokenstringMargin coin
>> convertRatiostringMargin coin convert ratio

Request Example

GET /v5/ins-loan/ensure-tokens?productId=70 HTTP/1.1
Host: api-testnet.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"marginToken": [
{
"productId": "70",
"spotToken": [
{
"token": "BTC",
"convertRatio": "1.00000000"
},
{
"token": "ETH",
"convertRatio": "1.00000000"
},
{
"token": "USDT",
"convertRatio": "1"
}
],
"contractToken": [
{
"token": "USDT",
"convertRatio": "1"
}
]
}
]
},
"retExtInfo": {},
"time": 1669363954802
}