Hyperliquid Get Outcome Price
Get real-time pricing and orderbook depth for a HIP-4 outcome market. Returns mid prices, bid-ask spread, and orderbook levels for both Yes and No sides. Use outcomeIndex from get-outcome-markets. Ideal for: spread analysis, cross-venue arbitrage with Polymarket, liquidity assessment, and entry/exit cost estimation.
Catalog action Hyperliquid
Get real-time pricing and orderbook depth for a HIP-4 outcome market. Returns mid prices, bid-ask spread, and orderbook levels for both Yes and No sides. Use outcomeIndex from get-outcome-markets. Ideal for: spread analysis, cross-venue arbitrage with Polymarket, liquidity assessment, and entry/exit cost estimation.
At a Glance
| Field | Value |
|---|---|
| Action ID | hyperliquid-get-outcome-price |
| Category | Hyperliquid |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | hyperliquid, prediction-market, trading, read |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
outcomeIndex | number | Yes | Outcome index from get-outcome-markets (e.g., 2) |
orderbookDepth | number | No | Number of orderbook levels to return per side (default: 5, max: 20) |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
outcomeIndex | number | Yes | The queried outcome index |
sides | array | Yes | Price data for each side (Yes/No) |
impliedProbability | number | null | No | Implied probability of YES outcome based on mid price (0.0–1.0, null if unavailable) |
Examples
json{ "type": "hyperliquid-get-outcome-price", "payload": { "outcomeIndex": 1 }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/hyperliquid-get-outcome-price/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "outcomeIndex": 1 }}'
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.
