Cancel an open order (dry run by default)
cancel_orderCancel an open or pending order with dry-run validation by default. Preview the cancellation first, then confirm live with a single-use token to manage trading risk.
Instructions
Cancel an open or pending order. DRY RUN BY DEFAULT, confirmed like place_order (cancelling a stop-loss can increase risk, so it is not exempt). Caps do not apply to cancellations.
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 |
|---|---|---|---|
| dry_run | No | true (default): validate and preview only, nothing is sent. false: send it live, which needs live trading enabled on the server and the confirmation_token from a dry run | |
| variety | No | the order's variety (it is part of the URL) | regular |
| order_id | Yes | ||
| parent_order_id | No | co second leg: the parent | |
| confirmation_token | No | the confirmation_token returned by a dry run of this exact call (single use) |