> For the complete documentation index, see [llms.txt](https://hydromancer.xyz/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hydromancer.xyz/docs/rest-api/outcomes/settledoutcomes.md). Agents can also search and read this documentation through its [MCP server](https://hydromancer.xyz/docs/~gitbook/mcp).

# settledOutcomes

Get recent settled Hyperliquid prediction market outcomes.

Returns a list of recently settled prediction market outcomes, ordered by most recent first, or by a stat with `sortBy`.

## POST Request

<table><thead><tr><th width="161">Field</th><th width="119">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td>string</td><td>Must be <code>"settledOutcomes"</code></td></tr><tr><td><code>limit</code></td><td>integer</td><td>Max results to return, default 100, max 100 (optional)</td></tr><tr><td><code>cursor</code></td><td>string</td><td>Take the <code>cursor</code> from the previous response to fetch the next page. Omit (or send <code>null</code>) for the first page. Must be a string — a number is a <code>400</code> — see <a href="#pagination">Pagination</a> (optional)</td></tr><tr><td><code>kind</code></td><td>string</td><td><code>"all"</code> (default), <code>"price"</code>, or <code>"canonical"</code> — see <a href="#the-kind-filter">The kind filter</a> (optional)</td></tr><tr><td><code>name</code></td><td>string</td><td>Filter by outcome name (optional)</td></tr><tr><td><code>class</code></td><td>string</td><td>Filter by outcome class, e.g. <code>"priceBinary"</code> (optional)</td></tr><tr><td><code>underlying</code></td><td>string</td><td>Filter by underlying asset, e.g. <code>"HYPE"</code> (optional)</td></tr><tr><td><code>period</code></td><td>string</td><td>Filter by period, e.g. <code>"15m"</code> (optional)</td></tr><tr><td><code>category</code></td><td>string</td><td>Filter by canonical-market category, e.g. <code>"sports"</code>, case-insensitive (optional)</td></tr><tr><td><code>subCategory</code></td><td>string</td><td>Filter by canonical-market sub-category, case-insensitive (optional)</td></tr><tr><td><code>search</code></td><td>string</td><td>Free-text search across name, description, category and subCategory — see <a href="#free-text-search">Free-text search</a> (optional)</td></tr><tr><td><code>venue</code></td><td>string</td><td>Only outcomes deployed by this permissionless venue, e.g. <code>"skew"</code>. 2–4 ASCII letters, case-insensitive (optional)</td></tr><tr><td><code>deployedBy</code></td><td>string</td><td><code>"all"</code> (default), <code>"validator"</code> (registered by validator quorum, no venue), or <code>"venue"</code> (any permissionless venue) (optional)</td></tr><tr><td><code>sortBy</code></td><td>string</td><td>Sort by an <code>outcomeStats</code> field instead of newest first — see <a href="#sorting">Sorting</a> (optional)</td></tr><tr><td><code>sortDirection</code></td><td>string</td><td><code>"desc"</code> (default) or <code>"asc"</code>. Only used with <code>sortBy</code> (optional)</td></tr></tbody></table>

> By default (`kind` omitted) all outcome kinds are returned. Pass `kind: "price"` for structured price markets only, or `kind: "canonical"` for HIP-4 prose markets only. See [The kind filter](#the-kind-filter).

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "settledOutcomes",
    "limit": 10,
    "underlying": "HYPE"
  }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
import os

response = requests.post(
    'https://api.hydromancer.xyz/info',
    json={
        'type': 'settledOutcomes',
        'limit': 10,
        'underlying': 'HYPE'
    },
    headers={
        'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
        'Content-Type': 'application/json'
    }
)

print(response.json())
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
import axios from 'axios';

try {
    const response = await axios.post('https://api.hydromancer.xyz/info', {
        type: 'settledOutcomes',
        limit: 10,
        underlying: 'HYPE'
    }, {
        headers: {
            'Authorization': `Bearer ${process.env.HYDROMANCER_API_KEY}`,
            'Content-Type': 'application/json'
        }
    });

    console.log(response.data);
} catch (error) {
    console.error('Error:', error.message);
}
```

{% endtab %}
{% endtabs %}

Only outcomes deployed by the `skew` venue, then only validator-deployed outcomes:

```bash
curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "settledOutcomes", "kind": "all", "venue": "skew"}'

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "settledOutcomes", "kind": "all", "deployedBy": "validator"}'
```

***

## Response Fields

Returns an object with two arrays — `outcomes` (the settled outcome objects, sorted descending by `outcomeId` unless `sortBy` is set) and `questions` (the parent HIP-4 questions of any priceBucket children that appear in `outcomes`, sorted descending by `questionId` unless `sortBy` is set) — plus the two pagination fields below. Both arrays are always present, even when empty.

| Field       | Type    | Description                                                   |
| ----------- | ------- | ------------------------------------------------------------- |
| `outcomes`  | array   | The settled outcome objects on this page                      |
| `questions` | array   | Parent questions of the outcomes on this page                 |
| `hasMore`   | boolean | `true` when another page follows                              |
| `cursor`    | string  | Pass to the next request to continue. Absent on the last page |

The `limit`, `cursor` and the filter parameters (`name`, `class`, `underlying`, `period`, `search`) apply to `outcomes` only. `questions` is derived from the resulting outcomes — a question is included if at least one of its children (named or fallback) is in the `outcomes` result. `hasMore` and `cursor` likewise describe `outcomes` only; `questions` is not paginated. Practical implications: filtering by `class: "priceBinary"` yields priceBinary outcomes plus an empty `questions` array (standalone outcomes have no parent question); filtering by `class: "priceBucket"` yields priceBucket children plus their parent question(s).

### Pagination

Walk the result set by holding `limit` and the filters fixed and passing back each continuation `cursor` until `hasMore` is `false`.

```bash
curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "settledOutcomes", "limit": 100}'

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "settledOutcomes", "limit": 100, "cursor": "3170"}'
```

With the [Hydromancer Python SDK](https://github.com/hydromancerxyz/hydromancer-sdk), set `HYDROMANCER_API_KEY` and run this page iterator.

```python
import asyncio
import os

import aiohttp
from hydromancer_sdk.rest.client import RestClient


async def main():
    async with aiohttp.ClientSession() as session:
        client = RestClient(api_key=os.environ["HYDROMANCER_API_KEY"], session=session)
        async for page in client.iter_settled_outcomes_pages(limit=100, underlying="HYPE"):
            print(page)


asyncio.run(main())
```

The iterator yields raw page dicts. Pass a string `cursor` to resume with the same filters. The server owns the limit default and cap of 100, and bad paging controls raise `HydromancerError`. Use `RestClient.call("settledOutcomes", **params)` for a typed single page.

Send the cursor back exactly as you received it, as a string. A numeric `cursor` returns a `400`.

The cursor is exclusive, so no outcome appears on two pages. The list is live, though: a market that settles mid-walk shows up at its own `outcomeId`. If that sits above your cursor you have already walked past it, and it will not appear.

Keep the filters and the sort identical across a walk. Changing one invalidates the cursor.

### Outcome object

| Field              | Type    | Description                                                                                                                                                                                                                 |
| ------------------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `outcomeId`        | integer | The outcome ID                                                                                                                                                                                                              |
| `kind`             | string  | `"price"` for structured markets, `"canonical"` for HIP-4 validator-voted (prose) markets                                                                                                                                   |
| `name`             | string  | Outcome name from the register event                                                                                                                                                                                        |
| `description`      | string  | Pipe-separated description. priceBucket children copy this as-is from the parent question                                                                                                                                   |
| `sideSpecs`        | array   | Side specifications, e.g. `[{"name":"Yes"},{"name":"No"}]`                                                                                                                                                                  |
| `class`            | string? | `"priceBinary"` or `"priceBucket"`. `null` when `kind` is `"canonical"`                                                                                                                                                     |
| `underlying`       | string? | Underlying asset, e.g. `"HYPE"`. `null` when `kind` is `"canonical"`                                                                                                                                                        |
| `expiry`           | string? | Expiry timestamp, e.g. `"20260508-1245"`. `null` when `kind` is `"canonical"`                                                                                                                                               |
| `targetPrice`      | string? | Numeric strike for `priceBinary`; bucket-range string for `priceBucket` (see [Target price formats](#target-price-formats) below). `null` when `kind` is `"canonical"`                                                      |
| `period`           | string? | Period, e.g. `"15m"`. `null` when `kind` is `"canonical"`                                                                                                                                                                   |
| `category`         | string? | Canonical-market category, e.g. `"sports"`. `null` on price markets                                                                                                                                                         |
| `subCategory`      | string? | Canonical-market sub-category. `null` on price markets                                                                                                                                                                      |
| `quoteToken`       | string  | Quote token ID                                                                                                                                                                                                              |
| `yesAssetId`       | string  | YES-side asset ID, format `"#{outcomeId * 10}"`                                                                                                                                                                             |
| `noAssetId`        | string  | NO-side asset ID, format `"#{outcomeId * 10 + 1}"`                                                                                                                                                                          |
| `settleFraction`   | string  | `"1"` if this outcome won, `"0"` otherwise. priceBucket children: exactly one named child has `"1"`; the fallback has `"1"` only when no named child wins                                                                   |
| `settleDetails`    | string? | Settlement result: numeric settle price as a string for price markets (e.g. `"73336"`); freeform decision text for canonical markets                                                                                        |
| `yesStats`         | object  | YES-side market stats. Always present; zero-valued when no fills (see [Stats object](#stats-object) below)                                                                                                                  |
| `noStats`          | object  | NO-side market stats                                                                                                                                                                                                        |
| `outcomeStats`     | object  | YES and NO combined, each trade counted once (see [Aggregated stats object](#aggregated-stats-object) below)                                                                                                                |
| `deployerAddress`  | string? | Permissionless-venue deployer address; null on validator-registered outcomes                                                                                                                                                |
| `deployerVenue`    | string? | Permissionless venue name; null on validator-registered outcomes                                                                                                                                                            |
| `templateId`       | string? | Template the outcome was deployed from, e.g. `"binaryPrice"` (see [outcomeTemplates](https://hydromancer.xyz/docs/rest-api/outcomes/outcometemplates.md)); null on outcomes not created from a template                     |
| `deployerFeeScale` | string? | Multiplier applied to the deployer fee for this market, e.g. `"10"`. `null` on validator-registered outcomes and when the chain uses its default scale of 1                                                                 |
| `registeredAt`     | object  | Chain position of the event that registered the outcome (see [Event position object](#event-position-object) below). Always present and complete: an outcome whose register or settle position is not known is not returned |
| `settledAt`        | object  | Chain position of the event that settled the outcome. `time` is the settlement timestamp. Always present and complete                                                                                                       |

### Event position object

`registeredAt` and `settledAt` use the same field names and values as the `register` and `settle` events for this outcome on [hip4MarketEvents](https://hydromancer.xyz/docs/websocket/hip4marketevents.md).

| Field         | Type    | Description                                                                                              |
| ------------- | ------- | -------------------------------------------------------------------------------------------------------- |
| `time`        | integer | Block timestamp (ms)                                                                                     |
| `blockNumber` | integer | Block height                                                                                             |
| `txIndex`     | integer | Position within the block. The children of a question share the question's register and settle positions |

### Question object

Question entries appear when the response includes priceBucket children — each such child has a parent question grouping 3 named children plus one fallback child. Question fields:

| Field                 | Type              | Description                                                                                                                                                                                                       |
| --------------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `questionId`          | integer           | The question ID (assigned by chain)                                                                                                                                                                               |
| `kind`                | string            | `"price"` or `"canonical"`                                                                                                                                                                                        |
| `name`                | string            | Question name                                                                                                                                                                                                     |
| `description`         | string            | Pipe-separated description; named children copy this as-is                                                                                                                                                        |
| `class`               | string?           | `"priceBucket"`. `null` when `kind` is `"canonical"`                                                                                                                                                              |
| `underlying`          | string?           | Underlying asset. `null` when `kind` is `"canonical"`                                                                                                                                                             |
| `expiry`              | string?           | Expiry timestamp. `null` when `kind` is `"canonical"`                                                                                                                                                             |
| `period`              | string?           | Period. `null` when `kind` is `"canonical"`                                                                                                                                                                       |
| `priceThresholds`     | string?           | Sorted comma-separated list of 2 cut-points. `null` when `kind` is `"canonical"`                                                                                                                                  |
| `category`            | string?           | Canonical-market category. `null` on price questions                                                                                                                                                              |
| `subCategory`         | string?           | Canonical-market sub-category. `null` on price questions                                                                                                                                                          |
| `quoteToken`          | string            | Quote token ID                                                                                                                                                                                                    |
| `fallbackOutcome`     | integer           | `outcomeId` of the fallback child                                                                                                                                                                                 |
| `fallbackName`        | string            | Name of the fallback child                                                                                                                                                                                        |
| `fallbackDescription` | string            | Description of the fallback child                                                                                                                                                                                 |
| `namedOutcomes`       | array of integers | `outcomeId`s of the 3 named children, in named-index order                                                                                                                                                        |
| `winningOutcome`      | integer?          | `outcomeId` of the child that resolved YES (a named child, or the fallback if all named children resolve NO). `null` until the question settles                                                                   |
| `winningNamedIndex`   | integer?          | Position in `namedOutcomes` of the winner if a named child won, `null` if the fallback won (or unsettled)                                                                                                         |
| `settleDetails`       | string?           | Numeric settle price for price questions; freeform decision text for canonical questions                                                                                                                          |
| `time`                | integer           | Settlement timestamp (ms)                                                                                                                                                                                         |
| `stats`               | object            | Aggregate trading stats across the question's children. Always present; zero-valued when no fills. See [Aggregated stats object](#aggregated-stats-object) below.                                                 |
| `deployerAddress`     | string?           | Permissionless-venue deployer address; null on validator-registered questions                                                                                                                                     |
| `deployerVenue`       | string?           | Permissionless venue name; null on validator-registered questions                                                                                                                                                 |
| `templateId`          | string?           | Template the question was deployed from, e.g. `"sportsContestResult"` (see [outcomeTemplates](https://hydromancer.xyz/docs/rest-api/outcomes/outcometemplates.md)); null on questions not created from a template |
| `deployerFeeScale`    | string?           | Multiplier applied to the deployer fee, e.g. `"10"`. `null` on validator-registered questions and when the chain uses its default scale of 1                                                                      |

### Target price formats

The `targetPrice` field on each outcome is a string whose format depends on the outcome's `class`.

**`priceBinary`** — a single numeric strike. The outcome resolves YES if the underlying's settle price meets the strike, NO otherwise.

```
"targetPrice": "52.328"
```

**`priceBucket`** — outcomes belong to a parent question that defines `priceThresholds` (a sorted comma-separated list of 2 cut-points splitting the price line into 3 buckets). The question has 3 named children plus one fallback child. Each named child resolves YES if the settle price falls in its bucket; the fallback child resolves YES if all named children resolve NO. The format mirrors interval notation:

| Child role                     | `targetPrice` value | Example (thresholds `80828, 81071`) |
| ------------------------------ | ------------------- | ----------------------------------- |
| First named child (index `0`)  | `<t0`               | `<80828`                            |
| Middle named child (index `1`) | `[t0,t1)`           | `[80828,81071)`                     |
| Last named child (index `2`)   | `>=t1`              | `>=81071`                           |
| Fallback child                 | raw threshold list  | `80828,81071`                       |

The fallback's literal comma-separated value signals "any price not covered by a named child" rather than a specific range. Use the parent question's `priceThresholds` field if you need to render the fallback's range yourself.

### Stats object

All fields except `settlementClosedPnl` reflect orderbook trading only. Fills with `dir = "Settlement"` (auto-close fills produced when the outcome settles, at price 1 for the winning side and 0 for the losing side) are excluded so vwap, lastPrice, min/max, largestTrade, and avg/median trade notional aren't distorted by them. `settlementClosedPnl` summarises the realized PnL across those Settlement-direction fills for the side.

| Field                 | Type    | Description                                                                            |
| --------------------- | ------- | -------------------------------------------------------------------------------------- |
| `coin`                | string  | Asset ID for this side                                                                 |
| `trades`              | integer | Number of trades on this side, including trades on the other side mirrored at `1 − px` |
| `uniqueTraders`       | integer | Distinct users that traded this side                                                   |
| `volumeNotional`      | string  | Sum of `px * sz` across those trades                                                   |
| `volumeContracts`     | string  | Sum of `sz` across those trades                                                        |
| `lastPrice`           | string  | Price of the most recent trade                                                         |
| `vwap`                | number  | Volume-weighted average trade price                                                    |
| `minPrice`            | string  | Minimum trade price                                                                    |
| `maxPrice`            | string  | Maximum trade price                                                                    |
| `avgTradeNotional`    | number  | Mean `px * sz` per trade                                                               |
| `medianTradeNotional` | number  | Median `px * sz` per trade                                                             |
| `largestTrade`        | string  | Maximum `px * sz` of any trade                                                         |
| `firstTrade`          | integer | Timestamp (ms) of earliest orderbook fill                                              |
| `lastTrade`           | integer | Timestamp (ms) of latest orderbook fill                                                |
| `settlementClosedPnl` | string  | Sum of `closed_pnl` across Settlement-direction fills for this side                    |

Each match counts on both sides of the outcome: the traded side at `px`, the other at `1 − px`. A mint or burn through the book counts once on each side, at the price that side traded at.

#### Aggregated stats object

`outcomeStats` combines an outcome's YES and NO; a question's `stats` combine the YES and NO of all its children. Each trade counts once, on the side it traded on, without the copy mirrored onto the other side. `outcomeStats` is therefore not the sum of `yesStats` and `noStats`, which both include every trade of the outcome. Always present; zero-valued when nothing traded.

Price-shaped metrics (`lastPrice`, `vwap`, `minPrice`, `maxPrice`, `largestTrade`, `avgTradeNotional`, `medianTradeNotional`) don't aggregate cleanly across assets, so they aren't reported, and there's no `coin` field. Settlement and the four HIP-4 conversion ops (`Split Outcome`, `Negate Outcome`, `Merge Outcome`, `Merge Question`) are excluded from all metrics.

| Field            | Type    | Description                                                                                                                 |
| ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------- |
| `trades`         | integer | Number of trades on the covered YES and NO assets, each counted once. A mint or burn through the book counts once per side. |
| `uniqueTraders`  | integer | Distinct users that traded any covered asset (Buy or Sell). A user who traded several counts once.                          |
| `volumeNotional` | string  | Sum of `px * sz` across those trades.                                                                                       |
| `firstTrade`     | integer | Timestamp (ms) of the earliest orderbook fill on any covered asset.                                                         |
| `lastTrade`      | integer | Timestamp (ms) of the latest orderbook fill on any covered asset.                                                           |

<details>

<summary>Response</summary>

The example covers three settled outcomes — a named priceBucket child (`7604`), the fallback child of the same question (`7601`), and a standalone priceBinary outcome (`7600`) — all with `settleFraction: "0"` (`"0"` for losers, `"1"` for the winner). Question `302`'s actual winner is `7603`, surfaced in the question's `winningOutcome` field; the question itself is automatically derived into `questions` because its child `7604` appears in `outcomes`.

```json
{
  "outcomes": [
    {
      "outcomeId": 7604,
      "registeredAt": {"time": 1778243400398, "blockNumber": 598100391, "txIndex": 4},
      "settledAt": {"time": 1778244305560, "blockNumber": 598114025, "txIndex": 2},
      "kind": "price",
      "name": "Recurring Named Outcome",
      "description": "class:priceBucket|underlying:BTC|expiry:20260508-1245|priceThresholds:80518,80760|period:15m",
      "sideSpecs": [{"name": "Yes"}, {"name": "No"}],
      "class": "priceBucket",
      "underlying": "BTC",
      "expiry": "20260508-1245",
      "targetPrice": ">=80760",
      "period": "15m",
      "category": null,
      "subCategory": null,
      "quoteToken": "1452",
      "yesAssetId": "#76040",
      "noAssetId": "#76041",
      "settleFraction": "0",
      "settleDetails": "80547.9",
      "yesStats": { "coin": "#76040", "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "volumeContracts": "0", "lastPrice": "0", "vwap": 0.0, "minPrice": "0", "maxPrice": "0", "avgTradeNotional": 0.0, "medianTradeNotional": 0.0, "largestTrade": "0", "firstTrade": 0, "lastTrade": 0, "settlementClosedPnl": "0" },
      "noStats":  { "coin": "#76041", "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "volumeContracts": "0", "lastPrice": "0", "vwap": 0.0, "minPrice": "0", "maxPrice": "0", "avgTradeNotional": 0.0, "medianTradeNotional": 0.0, "largestTrade": "0", "firstTrade": 0, "lastTrade": 0, "settlementClosedPnl": "0" },
      "outcomeStats": { "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "firstTrade": 0, "lastTrade": 0 }
    },
    {
      "outcomeId": 7601,
      "registeredAt": {"time": 1778243400398, "blockNumber": 598100391, "txIndex": 4},
      "settledAt": {"time": 1778244305560, "blockNumber": 598114025, "txIndex": 2},
      "kind": "price",
      "name": "Recurring Fallback",
      "description": "class:priceBucket|underlying:BTC|expiry:20260508-1245|priceThresholds:80518,80760|period:15m",
      "sideSpecs": [{"name": "Yes"}, {"name": "No"}],
      "class": "priceBucket",
      "underlying": "BTC",
      "expiry": "20260508-1245",
      "targetPrice": "80518,80760",
      "period": "15m",
      "category": null,
      "subCategory": null,
      "quoteToken": "1452",
      "yesAssetId": "#76010",
      "noAssetId": "#76011",
      "settleFraction": "0",
      "settleDetails": "80547.9",
      "yesStats": { "coin": "#76010", "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "volumeContracts": "0", "lastPrice": "0", "vwap": 0.0, "minPrice": "0", "maxPrice": "0", "avgTradeNotional": 0.0, "medianTradeNotional": 0.0, "largestTrade": "0", "firstTrade": 0, "lastTrade": 0, "settlementClosedPnl": "0" },
      "noStats":  { "coin": "#76011", "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "volumeContracts": "0", "lastPrice": "0", "vwap": 0.0, "minPrice": "0", "maxPrice": "0", "avgTradeNotional": 0.0, "medianTradeNotional": 0.0, "largestTrade": "0", "firstTrade": 0, "lastTrade": 0, "settlementClosedPnl": "0" },
      "outcomeStats": { "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "firstTrade": 0, "lastTrade": 0 }
    },
    {
      "outcomeId": 7600,
      "registeredAt": {"time": 1778243400398, "blockNumber": 598100391, "txIndex": 3},
      "settledAt": {"time": 1778244305560, "blockNumber": 598114025, "txIndex": 1},
      "kind": "price",
      "name": "Recurring",
      "description": "class:priceBinary|underlying:HYPE|expiry:20260508-1245|targetPrice:28.52|period:15m",
      "sideSpecs": [{"name": "Yes"}, {"name": "No"}],
      "class": "priceBinary",
      "underlying": "HYPE",
      "expiry": "20260508-1245",
      "targetPrice": "28.52",
      "period": "15m",
      "category": null,
      "subCategory": null,
      "quoteToken": "1452",
      "yesAssetId": "#76000",
      "noAssetId": "#76001",
      "settleFraction": "0",
      "settleDetails": "28.52",
      "yesStats": { "coin": "#76000", "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "volumeContracts": "0", "lastPrice": "0", "vwap": 0.0, "minPrice": "0", "maxPrice": "0", "avgTradeNotional": 0.0, "medianTradeNotional": 0.0, "largestTrade": "0", "firstTrade": 0, "lastTrade": 0, "settlementClosedPnl": "0" },
      "noStats":  { "coin": "#76001", "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "volumeContracts": "0", "lastPrice": "0", "vwap": 0.0, "minPrice": "0", "maxPrice": "0", "avgTradeNotional": 0.0, "medianTradeNotional": 0.0, "largestTrade": "0", "firstTrade": 0, "lastTrade": 0, "settlementClosedPnl": "0" },
      "outcomeStats": { "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "firstTrade": 0, "lastTrade": 0 }
    }
  ],
  "questions": [
    {
      "questionId": 302,
      "kind": "price",
      "name": "Recurring",
      "description": "class:priceBucket|underlying:BTC|expiry:20260508-1245|priceThresholds:80518,80760|period:15m",
      "class": "priceBucket",
      "underlying": "BTC",
      "expiry": "20260508-1245",
      "period": "15m",
      "priceThresholds": "80518,80760",
      "category": null,
      "subCategory": null,
      "quoteToken": "1452",
      "fallbackOutcome": 7601,
      "fallbackName": "Recurring Fallback",
      "fallbackDescription": "other",
      "namedOutcomes": [7602, 7603, 7604],
      "winningOutcome": 7603,
      "winningNamedIndex": 1,
      "settleDetails": "80547.9",
      "time": 1778244305560,
      "stats": { "trades": 0, "uniqueTraders": 0, "volumeNotional": "0", "firstTrade": 0, "lastTrade": 0 }
    }
  ]
}
```

</details>

***

## Sorting

Set `sortBy` to rank outcomes by one of their [`outcomeStats`](#aggregated-stats-object) fields: `trades`, `uniqueTraders`, `volumeNotional`, `firstTrade` or `lastTrade`. `sortDirection` is `"desc"` (default) or `"asc"`.

```bash
curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "settledOutcomes", "sortBy": "volumeNotional", "limit": 10}'
```

* Ties are ordered by `outcomeId`, newest first.
* Outcomes that never traded come last for `firstTrade` and `lastTrade`, in both directions.
* `questions` is sorted the same way, by each question's own `stats`. It still only holds the parents of the outcomes on the page, so a question on a later page can rank higher than one on this page.
* Pagination works as without sorting: pass back the `cursor` until it is absent. A market that settles mid-walk is ranked by its stats, so it can land on a page you already walked and not appear.
* An unknown `sortBy` or `sortDirection` returns a `400`, as do `volumeNotional24h` and `openInterestNotional`, which settled outcomes don't have.

## Free-text search

The optional `search` field matches case-insensitively against `name`, `description`, `category` and `subCategory`, combining with every other filter. A row matches when the whole query appears as a substring of one of those fields, or when every word of the query matches some word of a field:

* exactly, or
* as a prefix (for query words of at least 4 characters), or
* within a spelling-error budget (Damerau-Levenshtein distance): words of 5–8 characters allow 1 error, 9 or more allow 2. Words of up to 4 characters get no error budget — tickers and venue codes like `BTC` never near-match.

Examples: `"world cup"` matches `World Cup Final: Spain vs Argentina`; so do `"wolrd cup"` (typo) and `"spain argent"` (partial words, any order). `"BTX"` does not match `BTC`. Result order and `limit` semantics are unchanged.

## The kind filter

A single optional `kind` request field selects which markets are returned:

| `kind`            | Returns                                                        |
| ----------------- | -------------------------------------------------------------- |
| `"all"` (default) | Both kinds in one `outcomes` / `questions` envelope.           |
| `"price"`         | Structured price markets only (`priceBinary` / `priceBucket`). |
| `"canonical"`     | HIP-4 validator-voted (prose) markets only.                    |

The response shape is identical regardless of `kind` — the same `outcomes` / `questions` envelope, sort order, stats objects, and `limit` semantics. Each row carries a `kind` field telling you which it is.

**Nullability by kind.** On a `kind: "price"` response the structured fields (`class`, `underlying`, `expiry`, `targetPrice`, `period`) are always populated and `category` / `subCategory` are `null`. On a `kind: "canonical"` response those structured fields are `null` and `category` / `subCategory` are populated. A `kind: "all"` response mixes both, so treat every structured field as nullable and branch on `kind`.
