> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

![Hyperliquid Get Outcome Price logo](https://cdn.b3.fun/hyperliquid-logo.png)
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

**Workflow node**

```json
{
  "type": "hyperliquid-get-outcome-price",
  "payload": {
    "outcomeIndex": 1
  },
  "children": []
}
```
  **Test with API**

```bash
curl -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
  }
}'
```

**Use expressions for dynamic values**

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.