cancel_order
Cancel a single order by order ID and instrument name on Derive, with optional subaccount selection, to manage order lifecycle.
Instructions
Cancel a single order by 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": {
"order_id": "<order_id>",
"instrument_name": "<instrument_name>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Order ID to cancel | |
| subaccount_id | No | Subaccount ID (defaults to configured) | |
| instrument_name | Yes | Instrument name of the order |