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
- application/json
Request Body
- spotMarginMode integer
Possible values: [
0
,1
]Margin mode. 0=off, 1=on
- required
Responses
- 200
successful operation
POST /v5/spot-margin-trade/switch-mode
Request
Request
curl -L -X POST 'https://api-testnet.bybit.com/v5/spot-margin-trade/switch-mode' \
-H 'Content-Type: application/json' \
--data-raw '{
"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
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/spot-margin-trade/switch-mode' \
-H 'Content-Type: application/json' \
--data-raw '{
"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
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/spot-margin-trade/switch-mode' \
-H 'Content-Type: application/json' \
--data-raw '{
"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
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/spot-margin-trade/switch-mode' \
-H 'Content-Type: application/json' \
--data-raw '{
"spotMarginMode": 0
}'