close_all
Closes all open trading positions on your XBTFX account in a single operation. Use this bulk close tool to manage risk or exit multiple trades simultaneously.
Instructions
Close ALL open positions on the account. Destructive bulk operation — confirm with user first. Costs 10 weight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Applied to all close operations | |
| idempotency_key | No | Unique key to prevent duplicate bulk close. Auto-generated if omitted. |