hl_cancel_outcome_order
Cancel a resting HIP-4 outcome order on Hyperliquid by order ID; any partial fills remain in your position.
Instructions
Cancel a resting HIP-4 outcome order. Structured mode: apiKey, walletAddress (control), sessionPrivateKey, outcomeId, coin (must belong to outcomeId), orderId (numeric Hyperliquid oid from hl_create_outcome_order or hl_outcome_account openOrders). Partial fills before the cancel stay in the position. Pre-built mode: computedData alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | Side coin "#<assetId>" of the order | |
| apiKey | No | Structured mode: API key | |
| orderId | No | Numeric Hyperliquid oid | |
| outcomeId | No | ||
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| computedData | No | Pre-built mode ONLY: encrypted payload. Must be sent alone (no structured fields). | |
| walletAddress | No | Structured mode: CONTROL wallet address from sign-in (not the managed address) | |
| sessionPrivateKey | No | Structured mode: session private key |