close_all_positions
Closes all open trading positions by placing sell orders, with optional cancellation of pending orders before liquidation.
Instructions
Closes all open positions by placing sell orders for each. If the market is closed, the sell orders will remain queued and execute at the next market open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cancel_orders | No | If true is specified, cancel all open orders before liquidating all positions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||