reverse_position
Close a trading position and open the opposite side with identical volume in one operation. If the re-open fails, the original position remains closed.
Instructions
Close a position and immediately open the opposite side with same volume. Two-step composite — if the re-open fails (207), the position is already closed. Costs 2 weight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | Position ticket to reverse | |
| comment | No | Reverse comment, max 27 ASCII chars | |
| idempotency_key | No | Unique key to prevent duplicate reverse on retry. Auto-generated if omitted. |