Cancel an order or DCA
cancel_orderCancel one open order or a whole DCA schedule. Moves no funds; not reversible. Pass EXACTLY ONE of order_id (from get_my_orders) or schedule_id (stops every remaining DCA slice; filled slices stay filled). A cancelled stop-loss stops protecting the position, and re-placing it gets whatever price is available then. Confirm which order when there are several. Cancels are never blocked by the user's order-type switches.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cancel_order"
}
}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 | |||