Appearance
Change Margin Mode
Rate Limit: 10 req/sec/uid
Description
This interface cannot be used when the users have an open position or an order
HTTP Request
- POST /api/v1/futures/account/change_margin_mode
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
marginMode | string | true | Margin Mode ISOLATION CROSS |
symbol | string | true | Trading pair |
marginCoin | string | true | Margin coin |
Request Example
bash
curl -X 'POST' --location 'https://fapi.bitunix.com/api/v1/futures/account/change_margin_mode' \
-H "api-key:*******" \
-H "sign:*" \
-H "time:1659076670000" \
-H "language:en-US" \
-H "Content-Type: application/json" \
--data '{"marginMode":"ISOLATION","symbol":"BTCUSDT","marginCoin":"USDT"}'
Response Parameters
Parameter | Type | Description |
---|---|---|
marginMode | string | Margin Mode ISOLATION CROSS |
symbol | string | Trading pair |
marginCoin | string | Margin coin |
Response Example
json
{"code":0,"data":[{"positionMode":"ISOLATION"}],"msg":"Success"}