Cancel limit order
cancel_orderCancel a pending limit order by ID and release its reserved cash, freeing buying power in your paper-trading account. Use cancel_all_orders for every pending order.
Instructions
Cancel one pending limit order by ID and release its reserved cash.
Local change only. Returns a not_found error if the order does not exist or is no longer pending. Use cancel_all_orders to cancel every pending order.
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 |
| order_id | Yes | ID of the pending order, from place_limit_order or list_orders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |