cancel_order
Cancel a single order by ID, or cancel all open orders by setting cancel_all to true. Requires API credentials.
Instructions
Cancel a resting order. Pass order_id to cancel one order. To cancel ALL open orders you must explicitly pass cancel_all: true — an empty or argless call is rejected so a stray call can't mass-cancel by accident. Requires API credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | No | Order id to cancel a single order. | |
| market_id | No | Market id. REQUIRED when cancelling a single order (`order_id`); optional with `cancel_all` to scope the mass-cancel to one market. | |
| cancel_all | No | Set true to cancel ALL open orders. Required (and the only way) to trigger a mass-cancel; ignored when `order_id` is given. |