Cancel an order
cancel_orderCancel one resting order — or a whole DCA schedule — so it can no longer fire. Pass EXACTLY ONE of order_id (from get_my_orders) or schedule_id (from get_my_dca_schedules; stops every remaining slice, filled slices stay filled). This does not move funds, but it is not reversible — a cancelled stop-loss stops protecting the position, and re-placing it will be at whatever price is available then. Confirm with the user which order they mean when they have more than one. Cancels are never blocked by the user's order-type switches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | No | `order_id` from `get_my_orders`. Omit when cancelling a DCA by `schedule_id`. | |
| schedule_id | No | `schedule_id` from `get_my_dca_schedules` — cancels that whole DCA. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||