direct_cancel_order
Cancel an open HyperLiquid order by providing the coin and order ID with a private key or connected account. Use it when an agent must close an unwanted order directly.
Instructions
Cancel an open order directly with a private key on HyperLiquid.
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>",
"orderId": "<orderId>"
},
"name": "direct_cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Asset symbol | |
| orderId | Yes | Order ID (numeric) | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| privateKey | No | Wallet private key (hex) |