adjust_isolated_margin
Add or remove real margin on an open isolated position to manage risk. Fails if not isolated or if removal breaches the margin floor. Requires API credentials.
Instructions
Add or remove isolated margin on an open position. Fails if the position is not in isolated margin mode (MarginModeNotIsolated), if there is no open position in the market (NoOpenPosition), or if a removal breaches the margin floor. amount is a positive decimal string. Requires API credentials. This moves REAL margin on the position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | USDX amount to add or remove, as a positive decimal string (> 0). | |
| direction | Yes | Whether to add margin to or remove it from the position. | |
| market_id | Yes | Market of the open position, e.g. "BTC-USDX-PERP". |