hl_create_outcome_order
Place and validate buy or sell orders on Hyperliquid HIP-4 outcome markets, returning resting, filled, or rejected status.
Instructions
Place an order on a Hyperliquid HIP-4 outcome market. Structured mode (apiKey, walletAddress=control address, sessionPrivateKey, outcomeId, one of coin/sideIndex/sideLabel, isBuy, size, and price unless isMarket) is validated against the live market first: side must belong to outcomeId, size is whole contracts, price in [0.00001, 0.99999] with max 5 decimals, size×price >= 11 quote (a full-position sell is exempt when managedAddress is given), market must not be expired/settled. isBuy=false sells side tokens you hold. reduceOnly is ignored by the backend. Returns status resting (with orderId) | filled | rejected. Pre-built mode: computedData alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | Side coin "#<assetId>" from hl_outcomes sides[].coin. Give exactly one of coin / sideIndex / sideLabel. | |
| size | No | Whole contracts, e.g. "30" | |
| isBuy | No | Structured mode: true buys side tokens; false sells held tokens | |
| price | No | Limit price, e.g. "0.42" (omit for isMarket) | |
| apiKey | No | Structured mode: API key | |
| isMarket | No | Take the book at ±5% of top of book | |
| outcomeId | No | Structured mode: outcome market id | |
| sideIndex | No | Side index in sides[] (sides are NOT always Yes/No; read the labels) | |
| sideLabel | No | Exact side label from sides[].label, e.g. "No" or a team name | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| reduceOnly | No | Ignored by the backend | |
| 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) | |
| managedAddress | No | Managed wallet; enables position-aware sell checks | |
| sessionPrivateKey | No | Structured mode: session private key |