> For the complete documentation index, see [llms.txt](https://ottodata.gitbook.io/ottodata-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ottodata.gitbook.io/ottodata-docs/api-reference/pools-and-risk.md).

# Pools & risk

## Pools & risk

Uniswap (Hood) pool prices and the risk feeds built on them. Concepts: [Oracle deviation](https://ottodata.gitbook.io/ottodata-docs/concepts/oracle-deviation).

### `GET /v1/pools`

Latest snapshot of all tracked pools (stock token × USD stablecoin, Uniswap v2 + v3). Updated \~every 5 minutes.

```bash
curl https://api.ottodata.app/v1/pools
```

```json
{
  "count": 12,
  "pools": [
    {
      "ts": 1784189919,
      "ticker": "NVDA",
      "pool": "0xb944cec30bd4175855215d767adc81f39e5f7e2b",
      "version": "v3",
      "quote": "USDG",
      "pool_px": 209.65,
      "liquidity_usd": 46752.38,
      "chainlink_px": 209.68,
      "dev_bps": -1.71
    }
  ]
}
```

### `GET /v1/pools/{ticker}`

Pool price history for one ticker.

| Parameter | Type | Default | Notes    |
| --------- | ---- | ------- | -------- |
| `limit`   | int  | 500     | max 5000 |

### `GET /v1/risk/oracle-deviation`

The pool snapshot re-cut as a risk feed: sorted by absolute deviation, with a `status` per pool (`ok` < 100 bps, `warning` 100–500, `alert` > 500).

| Parameter     | Type  | Default | Notes                                      |
| ------------- | ----- | ------- | ------------------------------------------ |
| `min_abs_bps` | float | 0       | only return deviations at least this large |

```bash
curl "https://api.ottodata.app/v1/risk/oracle-deviation?min_abs_bps=100"
```

{% hint style="warning" %}
Interpret `dev_bps` together with `liquidity_usd` — thin pools deviate on noise.
{% endhint %}

### `GET /v1/risk/stables`

Live on-chain read of stablecoin prices vs the $1 peg (USD-pegged only; EUR-pegged coins like EURC are excluded).

```json
{
  "stables": [
    {
      "symbol": "USDC",
      "price": 0.99981132,
      "deviation_bps": -1.89,
      "updated_ago_sec": 61100,
      "stale": false,
      "status": "ok"
    }
  ]
}
```

Status thresholds: `ok` ≤ 30 bps, `warning` 30–100 bps, `depeg_alert` > 100 bps. `stale` flags feeds that haven't updated in over \~25 hours.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ottodata.gitbook.io/ottodata-docs/api-reference/pools-and-risk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
