# registeredOutcomesById

Returns metadata and stats for one or more registered prediction market outcomes that have not yet been settled. Each object consists of metadata and stats.

## 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>"registeredOutcomesById"</code></td></tr><tr><td><code>outcome_ids</code></td><td>integer[]</td><td>Array of outcome IDs (optional)</td></tr><tr><td><code>asset_ids</code></td><td>string[]</td><td>Array of asset IDs prefixed with <code>#</code>, e.g. <code>"#36360"</code> (optional)</td></tr></tbody></table>

At least one of `outcome_ids` or `asset_ids` must be provided and non-empty. Both can be provided in the same request — the results are merged and deduplicated. The combined number of unique IDs must not exceed 50.

{% 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": "registeredOutcomesById",
    "outcome_ids": [3616],
    "asset_ids": ["#36170"]
  }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
import os

response = requests.post(
    'https://api.hydromancer.xyz/info',
    json={
        'type': 'registeredOutcomesById',
        'outcome_ids': [3616],
        'asset_ids': ['#36170']
    },
    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: 'registeredOutcomesById',
        outcome_ids: [3616],
        asset_ids: ['#36170']
    }, {
        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 outcome objects. Each object consists of metadata and stats. Outcomes with missing name, description, or side specs are excluded from the response.

<details>

<summary>Response</summary>

```json
[
  {
    "outcomeId": 3636,
    "name": "Recurring",
    "description": "class:priceBinary|underlying:HYPE|expiry:20260409-1145|targetPrice:52.328|period:15m",
    "sideSpecs": [
      { "name": "Yes" },
      { "name": "No" }
    ],
    "class": "priceBinary",
    "underlying": "HYPE",
    "expiry": "20260409-1145",
    "targetPrice": "52.328",
    "period": "15m",
    "quoteToken": "1452",
    "yesAssetId": "#36360",
    "noAssetId": "#36361",
    "yesStats": {
      "coin": "#36360",
      "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
    },
    "noStats": {
      "coin": "#36361",
      "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
    }
  }
]
```

</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/registeredoutcomesbyid.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.
