Hyperliquid Outcome Place Order logo

Catalog action Hyperliquid wallet

Place a limit order on a HIP-4 outcome (prediction) market on Hyperliquid. Supports GTC, IOC, and ALO order types. Prices are probabilities between 0 and 1. Use get-outcome-markets to find available outcomeIndex values. Ideal for: prediction market trading, outcome arbitrage, and automated betting strategies.

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

FieldValue
Action IDhyperliquid-outcome-place-order
CategoryHyperliquid
Connectorwallet
Requires gasNo
Funds movementNone declared
Tagshyperliquid, prediction-market, order, trade, defi

Payload Schema

FieldTypeRequiredDescription
outcomeIndexintegerYesOutcome index from get-outcome-markets (e.g., 40 for BTC binary).
outcomeSidestringYesWhich side of the outcome to trade: 'yes' (side 0) or 'no' (side 1).
sidestringYesOrder direction: buy to go long on the outcome, sell to go short or close.
sizestringYesOrder size in outcome tokens (whole numbers only). Total order value (size × price) must be at least $10.
pricestringYesLimit price between 0 and 1 (probability). For example, 0.75 means 75% implied probability.
orderTypestringNoOrder type: limit (GTC, default), ioc (immediate-or-cancel), alo (add-liquidity-only / post-only).
reduceOnlybooleanNoIf true, order can only reduce an existing position.
cloidstringNoOptional client order ID (0x-prefixed hex, up to 16 bytes). Auto-generated if omitted.

Result Schema

FieldTypeRequiredDescription
statusstringYesOrder outcome: resting (on book), filled (immediately matched).
oidnumberNoHyperliquid order ID (present for resting and filled orders).
filledSizestringNoTotal filled size (for filled orders).
avgPricestringNoAverage fill price (for filled orders). On rare reconciliation paths (response lost in transit) this reflects the order's limit price, not the actual execution price.
outcomeIndexnumberNoOutcome index that was traded.
outcomeSidestringNoOutcome side that was traded (yes/no).
coinstringNoOutcome coin notation (e.g., #400).
sidestringNoOrder side (buy/sell).
requestedSizestringNoOriginally requested size.
requestedPricestringNoOriginally requested price.
cloidstringNoClient order id attached to this order (0x + 32 hex). Use to cancel or reconcile.

Examples

json
{ "type": "hyperliquid-outcome-place-order", "payload": { "outcomeIndex": 1, "outcomeSide": "yes", "side": "buy", "size": "example-size", "price": "example-price" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

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.