cancel_order
Cancels a pending limit order. If order_ref does not belong to the user, NOT_FOUND is returned (no information about another user's order is disclosed). idempotency_key is REQUIRED: calling again with the same key returns the stored response. This is a RISK-REDUCING operation: the policy wall does not block it (except the kill switch).
list_open_orders shows the order_ref of each pending order.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_ref": "<order_ref>",
"idempotency_key": "<idempotency_key>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | Exchange/venue name — must be one of the user's CONNECTED accounts (e.g. binance, bybit, okx, mt5, paper). A venue that is not connected is rejected with VENUE_NOT_CONNECTED. | |
| order_ref | Yes | Reference of the pending order to cancel (taken from list_open_orders). An order_ref that does not belong to the user returns NOT_FOUND. | |
| idempotency_key | Yes | Client-generated unique idempotency key (min 8 characters). Reuse the SAME key when retrying the same action — the stored response is replayed and the action is NOT performed a second time. |