hl_cancel_order
Cancel an open order on Hyperliquid using its order ID and asset symbol.
Instructions
Cancel a specific order by order ID. Requires HL_PRIVATE_KEY in env.
Args: coin: Asset symbol e.g. BTC oid: Order ID to cancel
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 |
|---|---|---|---|
| coin | Yes | ||
| oid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |