Automatic Margin Top-Up
- POST /capi/v2/account/modifyAutoAppendMargin
Weight(IP): 15, Weight(UID): 30
Request parameters
| Parameter | Type | Required? | Description | 
|---|---|---|---|
| positionId | Long | Yes | Isolated margin position ID | 
| autoAppendMargin | Boolean | Yes | Whether to enable automatic margin call | 
Request example
curl -X POST "https://api-contract.weex.com/capi/v2/account/modifyAutoAppendMargin" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*" \
   -H "ACCESS-PASSPHRASE:*" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "locale:zh-CN" \
   -H "Content-Type: application/json" \
   -d '{"positionId":1,"autoAppendMargin":false}'
Response parameters
| Parameter | Type | Description | 
|---|---|---|
| msg | string | Response message | 
| requestTime | string | Timestamp | 
| code | string | Response code | 
Response example
{
    "msg": "success",
    "requestTime": 1713339011237,
    "code": "200"
}