Hyperliquid Outcome Market Order logo

Catalog action Hyperliquid wallet

Place a market order on a HIP-4 outcome (prediction) market on Hyperliquid. Executes immediately at the best available price with configurable slippage protection (default 1%). Uses the best ask (for buys) or best bid (for sells) as the slippage reference to ensure fills on wide spreads. Ideal for: instant outcome trades, time-sensitive prediction bets, and quick position exits.

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-market-order
CategoryHyperliquid
Connectorwallet
Requires gasNo
Funds movementNone declared
Tagshyperliquid, prediction-market, order, trade, market, 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 × mid price) must be at least $10.
slippageBpsnumberNoMaximum acceptable slippage in basis points (default: 100 = 1%). For buys, applied above best ask; for sells, below best bid.
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: filled (fully matched), partially_filled (partial IOC match), cancelled (no match).
oidnumberNoHyperliquid order ID.
filledSizestringNoTotal filled size.
avgPricestringNoAverage fill price. 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.
midPricestringNoMid price at time of order.
limitPricestringNoEffective limit price after slippage.
cloidstringNoClient order id attached to this order (0x + 32 hex). Use to cancel or reconcile.

Examples

json
{ "type": "hyperliquid-outcome-market-order", "payload": { "outcomeIndex": 1, "outcomeSide": "yes", "side": "buy", "size": "example-size" }, "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.