Hyperliquid Cancel Order
Cancel an open order on Hyperliquid perpetual DEX by order ID or client order ID. Ideal for: cancelling stale limit orders, adjusting trading strategies, and risk management.
Catalog action Hyperliquid wallet
Cancel an open order on Hyperliquid perpetual DEX by order ID or client order ID. Ideal for: cancelling stale limit orders, adjusting trading strategies, and risk management.
This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.
At a Glance
| Field | Value |
|---|---|
| Action ID | hyperliquid-cancel-order |
| Category | Hyperliquid |
| Connector | wallet |
| Requires gas | No |
| Funds movement | None declared |
| Tags | hyperliquid, perps, order, trade, trading |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
dex | string | No | HIP-3 DEX name for TradFi markets. Omit for standard crypto perps. xyz = trade.xyz (stocks, indices, commodities), flx = flx.finance, vntl = vntl.exchange |
coin | string | Yes | Asset symbol (e.g., BTC, ETH, SOL) |
oid | number | No | Hyperliquid order ID to cancel |
cloid | string | No | Client order ID to cancel (alternative to oid) |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Cancellation outcome |
coin | string | No | Asset symbol |
cancelledOid | number | No | The order ID that was cancelled |
Examples
json{ "type": "hyperliquid-cancel-order", "payload": { "coin": "example-coin" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}
bashcurl -X POST "https://api.b3os.org/v1/actions/hyperliquid-cancel-order/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "coin": "example-coin" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
