Cancel an order
order_cancelCancel a single order by order_id; symbol is optional and auto-fetched when omitted. Use dry_run=true to preview the DELETE request before execution.
Instructions
Cancel one order by order_id. symbol is optional and auto-fetched when omitted. Call with dry_run=true to preview the DELETE request before executing.
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": "order_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Symbol of the order (auto-fetched if not provided) | |
| account | No | Account ID (auto-resolves if single account) | |
| dry_run | No | Print the request payload without signing or sending it | |
| network | No | Network override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config. | |
| order_id | Yes | order-id |