close_all_positions
Liquidate all open positions by placing sell orders for each. If the market is closed, orders queue and execute at the next open. Optionally cancel existing orders first.
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 | |||