cancel_order
Cancel open trading orders by order ID to manage positions and control risk. Requires authentication with subaccount details.
Instructions
Cancel an open order by order ID. Requires authentication.
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": {
"subaccount_id": "<subaccount_id>",
"order_id": "<order_id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subaccount_id | Yes | Subaccount ID that placed the order | |
| order_id | Yes | Order ID to cancel |