cancel_order
Cancel a pending order by providing the order ID. Verify cancellation success with get_order.
Instructions
Cancel an existing order.
Note: While most cancellations are processed immediately during market hours, this is not guaranteed. Use get_order to confirm cancellation.
Args: order_id: The UUID of the order to cancel. account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |