Set Auto Add Margin
Turn on/off auto-add-margin for isolated margin position
Normal account covers: USDT perpetual / Inverse contract
HTTP Request
POST /cloud/trade/v3/position/set-auto-add-margin
Request Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| category | true | string | Product type
|
| symbol | true | string | Symbol name |
| autoAddMargin | true | integer | Turn on/off. 0: off. 1: on |
| positionIdx | false | integer | Used to identify positions in different position modes. For hedge mode position, this param is required
|
Response Parameters
None
Request Example
POST /cloud/trade/v3/position/set-auto-add-margin HTTP/1.1
Host: openapi-testnet.zoomex.com
X-BAPI-SIGN-TYPE: 2
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1675255134857
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"category": "linear",
"symbol": "BTCUSDT",
"autoAddmargin": 1,
"positionIdx": null
}
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {},
"retExtInfo": {},
"time": 1675255135069
}