Cancel an order
cancel_orderCancels an open or partially filled order by ID and releases the reserved balance or shares; only the unfilled remainder is removed.
Instructions
Cancels one of the user's open or partially filled orders by id, releasing the balance or shares it reserved. Shares that already filled stay filled; only the unfilled remainder is cancelled. Orders that are filled, already cancelled or still processing cannot be cancelled, so check the status with list_orders first.
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, from list_orders or place_bet. |