factor_hl_cancel_order
Cancel a resting HyperLiquid main-dex perpetual order by client order ID on HyperEVM via CoreWriter without moving funds; use the offchain variant for HIP-3 builder-dex orders.
Instructions
Cancel a HyperLiquid main-dex perp order by cloid via CoreWriter (on-chain). HyperEVM (chain 999) only. Does NOT move funds — only kills the resting order. For HIP-3 builder-dex orders (xyz:GOLD, ...), use factor_hl_cancel_order_offchain.
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": {
"vault": "<vault>",
"perp": "<perp>",
"cloid": "<cloid>"
},
"name": "factor_hl_cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perp | Yes | Main-dex perp asset index (0=BTC, 1=ETH, ...). Use factor_hl_list_perps to look up. | |
| cloid | Yes | Client order id from open/place — 0x + 32 hex chars (128 bits). | |
| vault | Yes | Vault contract address (HyperEVM). | |
| password | No | Wallet password if encrypted. |