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

# Basis

## Basis

The flagship feed. Concepts: [Basis: on-chain vs NASDAQ](https://ottodata.gitbook.io/ottodata-docs/concepts/basis-on-chain-vs-nasdaq).

### `GET /v1/basis/snapshot`

Latest basis tick for all 32 tokenized stocks.

```bash
curl https://api.ottodata.app/v1/basis/snapshot
```

```json
{
  "count": 32,
  "ticks": [
    {
      "ts": 1784189981,
      "ticker": "AAPL",
      "chainlink_px": 328.24995,
      "chainlink_updated_at": 1784145328,
      "ref_last": 327.5,
      "ref_prev_close": 327.5,
      "implied_mult": 1.0023,
      "ui_mult": 1.0,
      "oracle_paused": 0,
      "basis_bps": 22.9,
      "overnight_bps": 22.9
    }
  ]
}
```

| Field                         | Meaning                                                |
| ----------------------------- | ------------------------------------------------------ |
| `chainlink_px`                | On-chain Chainlink price (total-return)                |
| `chainlink_updated_at`        | When the feed last updated — stale off-hours by design |
| `ref_last` / `ref_prev_close` | Live NASDAQ reference / previous close                 |
| `implied_mult`                | Observed total-return multiplier                       |
| `ui_mult`                     | Token contract's `uiMultiplier()`, read on-chain       |
| `oracle_paused`               | Token contract pause flag                              |
| `basis_bps`                   | On-chain vs live reference, + = token premium          |
| `overnight_bps`               | On-chain vs previous close (the gap)                   |

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

Minute-level history for one ticker, newest first.

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

```bash
curl "https://api.ottodata.app/v1/basis/NVDA?limit=100"
```

Returns `404` for unknown tickers.

### `GET /v1/feeds`

The registry: 32 equity + 20 crypto feeds with Chainlink proxy addresses and token contract addresses. This is the source of truth for what Otto tracks.


---

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