Skip to main content

Margin Coin Info

tip

This is a public endpoint, so it does not need to authenticate.

HTTP Request

GET /spot/v3/public/margin-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

curl --location --request POST 'https://api-testnet.bybit.com/spot/v3/public/margin-ensure-tokens?productId=70'

Response Example

{
"retCode": 0,
"retMsg": "OK",
"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
}