set_auto_add_margin
Control automatic margin addition for isolated positions. Set autoAddMargin to 0 or 1 to enable or disable this feature for a given symbol.
Instructions
Turn on/off auto-add-margin for isolated margin position (MEDIUM risk).
Args:
category: Product type - linear
symbol: Symbol name
autoAddMargin: 0 to turn off, 1 to turn on
positionIdx: Position index (0: one-way, 1: hedge buy, 2: hedge sell)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| category | Yes | ||
| positionIdx | No | ||
| autoAddMargin | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |