hl_cancel_order
Cancel a single resting Hyperliquid perpetual futures order by order ID (oid). Provide the asset symbol and the oid from your open orders list.
Instructions
Cancel one resting order by its order id (oid), which comes from hl_account with kind=openOrders.
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": {
"coin": "<coin>",
"oid": "<oid>"
},
"name": "hl_cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oid | Yes | Order id from openOrders. | |
| coin | Yes | Asset symbol the order is on. |