cancel_order
Cancel a single resting order with order_id, or cancel all open orders by explicitly setting cancel_all=true. Empty calls are rejected to prevent accidental mass-cancellation.
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. |