Skip to main content

Set Isolated Position Auto Margin

Frequency limit: 5 times/1s (uid)

Description

Adjust isolated position auto margin

HTTP Request

  • POST /api/v2/mix/account/set-auto-margin
Request Example
curl -X POST "https://api.bitget.com/api/v2/mix/account/set-auto-margin" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"symbol": "btcusdt","autoMargin": "on","marginCoin": "usdt","amount": "20","holdSide": "long"}'

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pair
autoMarginStringYesAuto margin flag
on auto margin on
off auto margin off
marginCoinStringYesMargin coin must be capitalized
holdSideStringNoPosition direction (no need in cross margin mode).
long long position; short short position
amountStringYesMargin amount, positive means increase, and negative means decrease
Response Example
{
"code": "00000",
"data": "success",
"msg": "success",
"requestTime": 1627293357336
}

Response Parameters

ParameterTypeDescription
codeString‘00000’: success; others: fail

How was your Reading Experience with us?