Cancel an order
cancel_orderCancels the unsent pieces of an order to stop pending execution; pieces already being sent may still complete.
Instructions
Cancels the pieces of an order that have not been sent yet. A piece already being sent may still complete.
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": {
"orderId": "<orderId>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Order id from route_order or get_orders |