cancel_order
Remove a pending order from the order book by canceling it. Verify the order is active first, as cancellation is permanent.
Instructions
Cancel a pending order and remove it from the order book. This is irreversible -
once cancelled, the order cannot be reinstated and must be placed again.
Use fetch_all_orders or fetch_order first to confirm the order is still
active before attempting to cancel.
Args:
order_id: Numeric ID of the pending order to cancel (e.g., 12345678).
Get this from fetch_all_orders or from the response when the order was placed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |