cancel_order
Cancel an open order by its venue order ID. Returns a cancellation receipt and works idempotently even if the order is already filled or non-existent.
Instructions
Cancel an outstanding order by its venue order_id. Signed inside the enclave just like place_order. Returns the cancellation receipt from the venue. Idempotent: cancelling a non-existent / already-filled order returns ok=false with a reason from the venue.
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": {
"venue": "<venue>",
"order_id": "<order_id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | Venue identifier. Must match an entry returned by list_venues — any other value will be rejected by the gateway. | |
| order_id | Yes | Venue-native order identifier returned by place_order. | |
| symbol | No | Venue-native symbol — REQUIRED for binance + okx cancels (their REST APIs need the symbol on the cancel route). Optional for venues that derive it from order_id alone. |