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.
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 |