# Market data

> Quotes, daily bars and the latest intraday price of a symbol.

URL: https://renzo-digital.com/docs/resources/market-data

Market data gives the latest daily quote of a symbol, its daily bars, and the intraday price that price alerts use. Quotes and bars are open to everyone. The latest intraday price needs a token and a username.

## Endpoints

| Operation | What it does | Auth |
| --- | --- | --- |
| `GET /api/v1/market-data` | List quotes of catalog symbols. Cursor-paginated. | None |
| `GET /api/v1/market-data/{slug}` | Read the quote of one symbol. | None |
| `GET /api/v1/market-data/{slug}/bars` | List daily bars of one symbol, newest day first. Cursor-paginated. | None |
| `GET /api/v1/market-data/{slug}/latest-price` | Read the intraday price that price alerts check. | Token and username |

Find a `slug` with [Symbols](https://renzo-digital.com/docs/resources/symbols).

## Example: read a quote

```bash tab="curl"
curl "$BASE/api/v1/market-data/aapl-nasdaq"
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]

answer = requests.get(f"{BASE}/api/v1/market-data/aapl-nasdaq")
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE } = process.env;

const answer = await fetch(`${BASE}/api/v1/market-data/aapl-nasdaq`);
if (!answer.ok) throw new Error(`HTTP ${answer.status}`);
console.log(await answer.json());
```

```json title="Response"
{
  "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0",
  "slug": "aapl-nasdaq",
  "ticker": "AAPL",
  "exchange": "NASDAQ",
  "display_name": "Apple Inc.",
  "asset_class": "equity",
  "is_active": true,
  "price_scale": 2,
  "mapping_state": "mapped",
  "mapping": {
    "provider": "massive",
    "provider_symbol": "AAPL",
    "venue": "XNAS",
    "mapping_version": "v1",
    "is_active": true
  },
  "quote_state": "fresh",
  "provider": "massive",
  "latest_close": 187.42,
  "daily_change": 1.31,
  "daily_change_percent": 0.7,
  "open": 186.9,
  "high": 188.4,
  "low": 186.2,
  "performance": { "w1": 1.2, "m1": 3.4, "m3": 6.8, "m6": 12.1, "ytd": 18.9, "y1": 24.5 },
  "week52_high": 199.62,
  "week52_low": 164.08,
  "sparkline": [177.4, 175.78, 176.16, 178.54, 176.92, 177.3, 179.68, 178.06, 178.44, 180.82, 179.2, 179.58, 181.96, 180.34, 180.72, 183.1, 181.48, 181.86, 184.24, 182.62, 183, 185.38, 183.76, 184.14, 186.52, 184.9, 185.28, 187.66, 186.04, 186.42],
  "session": {
    "open_at": "2026-11-04T14:30:00Z",
    "close_at": "2026-11-04T21:00:00Z"
  },
  "trading_day": "2026-11-03",
  "observation_at": "2026-11-03T21:00:00Z",
  "fetched_at": "2026-11-04T06:15:00Z",
  "stale": false,
  "error": null
}
```

Read daily bars, newest day first:

```bash tab="curl"
curl "$BASE/api/v1/market-data/aapl-nasdaq/bars?start=2026-11-01&end=2026-11-03&limit=1"
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]

answer = requests.get(
    f"{BASE}/api/v1/market-data/aapl-nasdaq/bars",
    params={"start": "2026-11-01", "end": "2026-11-03", "limit": 1},
)
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE } = process.env;

const answer = await fetch(`${BASE}/api/v1/market-data/aapl-nasdaq/bars?start=2026-11-01&end=2026-11-03&limit=1`);
if (!answer.ok) throw new Error(`HTTP ${answer.status}`);
console.log(await answer.json());
```

```json title="Response"
{
  "items": [
    {
      "trading_day": "2026-11-03",
      "open": 186.9,
      "high": 188.4,
      "low": 186.2,
      "close": 187.42,
      "volume": 52318400
    }
  ],
  "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ",
  "has_more": true,
  "limit": 1
}
```

Read the latest intraday price:

```bash tab="curl"
curl "$BASE/api/v1/market-data/aapl-nasdaq/latest-price" \
  -H "Authorization: Bearer $TOKEN"
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]
TOKEN = os.environ["TOKEN"]

answer = requests.get(
    f"{BASE}/api/v1/market-data/aapl-nasdaq/latest-price",
    headers={"Authorization": f"Bearer {TOKEN}"},
)
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE, TOKEN } = process.env;

const answer = await fetch(`${BASE}/api/v1/market-data/aapl-nasdaq/latest-price`, {
  headers: { Authorization: `Bearer ${TOKEN}` },
});
if (!answer.ok) throw new Error(`HTTP ${answer.status}`);
console.log(await answer.json());
```

```json title="Response"
{
  "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0",
  "price": 187.42,
  "observed_at": "2026-11-04T15:42:10Z",
  "source": "massive",
  "replayed": false,
  "replay": null
}
```

## Rules and edge cases

- **Quote source.** A quote comes from stored daily bars, not from live ticks. `latest_close` is the most recent daily close. `sparkline` holds the last 30 closes, oldest first.
- **Quote state.** `quote_state` is `fresh`, `stale` or `unavailable`. When there is no usable quote, `error.code` says why, and the price fields are `null`. `mapping_state` is `unmapped` when no provider supplies prices for the symbol.
- **Many quotes.** `slugs` is a comma-separated list of up to 100 slugs. Unknown slugs are skipped. More than 100 answers `400` [`market_data_too_many_slugs`](https://renzo-digital.com/docs/error-codes#market_data_too_many_slugs). `asset_class` narrows the list to one class.
- **Paging.** Lists default to 20 and may not pass 100. See [Pagination](https://renzo-digital.com/docs/concepts/pagination).
- **Bars paging.** `limit` defaults to 400 and may reach 1000. Over 1000 answers `422` [`validation_failed`](https://renzo-digital.com/docs/error-codes#validation_failed). Bars come newest first. Follow `next_cursor` to go back in time. `start` and `end` are dates, both included.
- **No source, no bars.** A symbol with no price source answers `200` with an empty `items` list.
- **Bonds.** A `bond` symbol is a US Treasury yield. Values are in percent, not prices. Bars are close-only: `open`, `high` and `low` are `null`. There is one value per US business day. The latest complete day is one business day back.
- **Latest price may be missing.** When there is no intraday price right now, the answer is `503` [`market_data_latest_price_unavailable`](https://renzo-digital.com/docs/error-codes#market_data_latest_price_unavailable). Try again later. Daily quotes still work.
- **Latest price gating.** It needs a token and a username. Without a username, it answers `409` [`profile_incomplete`](https://renzo-digital.com/docs/error-codes#profile_incomplete). See [Account](https://renzo-digital.com/docs/resources/account).
- **Unknown slug.** It answers `404` [`symbol_not_found`](https://renzo-digital.com/docs/error-codes#symbol_not_found), except in the many-quotes list, which skips it.

## Errors

| Code | Status | When |
| --- | --- | --- |
| [`symbol_not_found`](https://renzo-digital.com/docs/error-codes#symbol_not_found) | 404 | No active symbol has this slug. |
| [`market_data_too_many_slugs`](https://renzo-digital.com/docs/error-codes#market_data_too_many_slugs) | 400 | More than 100 slugs were sent. |
| [`market_data_latest_price_unavailable`](https://renzo-digital.com/docs/error-codes#market_data_latest_price_unavailable) | 503 | There is no intraday price for this symbol right now. |
| [`profile_incomplete`](https://renzo-digital.com/docs/error-codes#profile_incomplete) | 409 | The account has no username yet. |
| [`invalid_cursor`](https://renzo-digital.com/docs/error-codes#invalid_cursor) | 400 | The cursor is damaged, belongs to another list or was sent with other filters. |

Sign-in and request errors, such as [`token_expired`](https://renzo-digital.com/docs/error-codes#token_expired) and [`validation_failed`](https://renzo-digital.com/docs/error-codes#validation_failed), can come from any call. See [Errors](https://renzo-digital.com/docs/concepts/errors).

## Reference

- [Market data in the API reference](https://renzo-digital.com/docs/api#tag/market-data)
