Skip to main content

Toggle Margin Trade

Toggle margin trade

Header Parameters
  • apiKey string

    A UTA sub account API key is provided by default

  • secret string

    A UTA sub account API key is provided by default

Request Body
  • spotMarginMode integer

    Possible values: [0, 1]

    Margin mode. 0=off, 1=on

  • required
Responses

successful operation

POST /v5/spot-margin-trade/switch-mode

Request

Base URL
https://api-testnet.bybit.com
apiKey — header
secret — header
Body
{
"spotMarginMode": 0
}
curl -L -X POST 'https://api-testnet.bybit.com/v5/spot-margin-trade/switch-mode' \
-H 'Content-Type: application/json' \
--data-raw '{
"spotMarginMode": 0
}'