cancel_order
Cancels a resting perpetual order by order ID and market symbol, enabling AI agents to remove open orders on dreamDEX after checking account state.
Instructions
Cancel a resting perp order by its order id (see get_account for open orders).
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 |
|---|---|---|---|
| symbol | Yes | Base symbol of the market, e.g. BTC | |
| orderId | Yes | uint128 order id, decimal string |