Skip to main content

Set Collateral Coin

You can decide whether the assets in the Unified account needs to be collateral coins.

HTTP Request

POST /v5/account/set-collateral-switch

Request Parameters

ParameterRequiredTypeComments
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

None


Request Example

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

{
"coin": "BTC",
"collateralSwitch": "ON"
}

Response Example

{
"retCode": 0,
"retMsg": "SUCCESS",
"result": {},
"retExtInfo": {},
"time": 1690515818656
}