cancel_order
Cancel a working order by its ID. Safe to use on already cancelled or fully filled orders. Requires write permissions.
Instructions
Cancel a working order by ID. Idempotent at the Luno API level: cancelling an already-cancelled or fully-filled order returns the current state without error. Use after list_orders to remove a specific working order. Write operation: requires the --allow-write-operations flag or ALLOW_WRITE_OPERATIONS=true.
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 | ID of the order to cancel, as returned by list_orders or create_order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes |