Skip to main content

Batch Set Collateral Coin

HTTP Request

POST /v5/account/set-collateral-switch-batch

Request Parameters

ParameterRequiredTypeComments
requesttruearrayObject
> cointruestringCoin name, uppercase only
  • You can get collateral coin from here
  • USDT, USDC cannot be set
> collateralSwitchtruestringON: switch on collateral, OFF: switch off collateral

Response Parameters

ParameterTypeComments
resultObject
> listarrayObject
>> coinstringCoin name
>> collateralSwitchstringON: switch on collateral, OFF: switch off collateral

Request Example

POST /v5/account/set-collateral-switch-batch HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1704782042755
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 371

{
"request": [
{
"coin": "MATIC",
"collateralSwitch": "OFF"
},
{
"coin": "BTC",
"collateralSwitch": "OFF"
},
{
"coin": "ETH",
"collateralSwitch": "OFF"
},
{
"coin": "SOL",
"collateralSwitch": "OFF"
}
]
}

Response Example

{
"retCode": 0,
"retMsg": "SUCCESS",
"result": {
"list": [
{
"coin": "MATIC",
"collateralSwitch": "OFF"
},
{
"coin": "BTC",
"collateralSwitch": "OFF"
},
{
"coin": "ETH",
"collateralSwitch": "OFF"
},
{
"coin": "SOL",
"collateralSwitch": "OFF"
}
]
},
"retExtInfo": {},
"time": 1704782042913
}