# settledOutcomes

Returns a list of recently settled prediction market outcomes, ordered by most recent first.

## 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 50, max 50 (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></tbody></table>

{% 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 %}

***

## Response Fields

Returns an array of settled outcome objects. Each object has the same structure as the `settledOutcomesById` response, including market stats.

<details>

<summary>Response</summary>

```json
[
  {
    "outcomeId": 3137,
    "name": "Recurring",
    "description": "class:priceBinary|underlying:HYPE|expiry:20260404-0815|targetPrice:38|period:15m",
    "sideSpecs": [
      { "name": "Yes" },
      { "name": "No" }
    ],
    "class": "priceBinary",
    "underlying": "HYPE",
    "expiry": "20260404-0815",
    "targetPrice": "38",
    "period": "15m",
    "quoteToken": "1452",
    "yesAssetId": "#31370",
    "noAssetId": "#31371",
    "settleFraction": "0",
    "settlePrice": "38",
    "yesStats": {
      "coin": "#31370",
      "trades": 12,
      "uniqueTraders": 5,
      "volumeNotional": "1234.56",
      "volumeContracts": "5000.00",
      "lastPrice": "0.65",
      "vwap": 0.62,
      "minPrice": "0.40",
      "maxPrice": "0.80",
      "avgTradeNotional": 102.88,
      "medianTradeNotional": 85.00,
      "largestTrade": "500.00",
      "firstTrade": 1775047830221,
      "lastTrade": 1775289697740
    },
    "noStats": {
      "coin": "#31371",
      "trades": 8,
      "uniqueTraders": 3,
      "volumeNotional": "800.00",
      "volumeContracts": "3000.00",
      "lastPrice": "0.35",
      "vwap": 0.38,
      "minPrice": "0.20",
      "maxPrice": "0.60",
      "avgTradeNotional": 100.00,
      "medianTradeNotional": 90.00,
      "largestTrade": "300.00",
      "firstTrade": 1775047830221,
      "lastTrade": 1775282974739
    }
  }
]
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hydromancer.xyz/readme/rest-api/outcomes/settledoutcomes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
