Cancel all limit orders
cancel_all_ordersCancel every pending limit order for a paper-trading account and release reserved cash; filled orders and open positions stay unchanged.
Instructions
Cancel every pending limit order of an account and release the reserved cash.
Local change only; filled orders and open positions are untouched. Returns the count and the cancelled orders. Use cancel_order to cancel just one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Paper account name; any name without '/', '\', '..' or surrounding spaces. Each name is a separate local account. Default 'default'. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |