> 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/overview.md).

# Overview

## API overview

### Base URL

```
https://api.ottodata.app
```

All REST endpoints live under `/v1/`. Breaking changes get a new version prefix — `/v1/` responses are stable.

### Interactive reference

The API is fully described by its OpenAPI schema:

* **Swagger UI**: [api.ottodata.app/docs](https://api.ottodata.app/docs) — try every endpoint in the browser
* **ReDoc**: [api.ottodata.app/redoc](https://api.ottodata.app/redoc)
* **Raw schema**: [api.ottodata.app/openapi.json](https://api.ottodata.app/openapi.json)

### Authentication

None. The API is free and open during beta — no key, no account, no signup.

### Response conventions

* All responses are JSON. List endpoints wrap results with a `count` field.
* Timestamps: `ts` is Unix seconds; `ts_ms` (events) is Unix milliseconds.
* Prices are USD floats; deviations and gaps are in **basis points** (`_bps` suffix, 1 bp = 0.01%).
* Errors use standard HTTP codes with `{"detail": "message"}` bodies:
  * `404` — no data for that ticker/resource
  * `422` — invalid query parameter
  * `503` — an upstream dependency is unavailable (currently only `/v1/social/*`)

### Health

```bash
curl https://api.ottodata.app/health
```

```json
{
  "status": "ok",
  "service": "otto-data",
  "collector": true,
  "ticks": 24192,
  "deployments": 27485,
  "events": 767,
  "mcp": "/mcp",
  "docs": "/docs"
}
```

### Endpoint index

| Group                                                                                  | Endpoints                                                                          |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [Basis](https://ottodata.gitbook.io/ottodata-docs/api-reference/basis)                 | `/v1/basis/snapshot`, `/v1/basis/{ticker}`, `/v1/feeds`                            |
| [Gaps](https://ottodata.gitbook.io/ottodata-docs/api-reference/gaps)                   | `/v1/gaps/summary`, `/v1/gaps/live`, `/v1/gaps/{ticker}`                           |
| [Pools & risk](https://ottodata.gitbook.io/ottodata-docs/api-reference/pools-and-risk) | `/v1/pools`, `/v1/pools/{ticker}`, `/v1/risk/oracle-deviation`, `/v1/risk/stables` |
| [Flows](https://ottodata.gitbook.io/ottodata-docs/api-reference/flows)                 | `/v1/flows`, `/v1/flows/summary`                                                   |
| [Social](https://ottodata.gitbook.io/ottodata-docs/api-reference/social-reddit-intel)  | `/v1/social/signals`, `/v1/social/regime`, `/v1/social/hood-attention`             |
| [Events](https://ottodata.gitbook.io/ottodata-docs/api-reference/news-events)          | `/v1/events`                                                                       |
| [Ottoscan](https://ottodata.gitbook.io/ottodata-docs/api-reference/ottoscan)           | `/v1/scan/deployments`, `/v1/scan/stats`                                           |
| [WebSocket](https://ottodata.gitbook.io/ottodata-docs/api-reference/websocket-stream)  | `WS /v1/stream/basis`                                                              |
| [Otto AI](https://ottodata.gitbook.io/ottodata-docs/api-reference/otto-ai-chat)        | `POST /v1/ai/chat`                                                                 |


---

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