Cancel an order
cancel_orderCancel a resting order by exchange order ID and symbol to prevent unwanted fills or free margin.
Instructions
Cancel a resting order by its exchange order id.
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": {
"symbol": "<symbol>",
"orderId": "<orderId>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why you are cancelling, if not obvious. | |
| symbol | Yes | ||
| orderId | Yes | The oid returned when the order was placed. |