> ## Documentation Index
> Fetch the complete documentation index at: https://octo-98895abd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# /v2/prices

> What did it trade at? Daily history (split-adjusted by default), latest quote, sessions, indices, B3 FORWARD prints, and the risk split of a share.

What did it trade at? Daily history (split-adjusted by default), latest quote, sessions, indices, B3 FORWARD prints, and the risk split of a share.

`GET /v2/prices` serves 6 kinds; the default is `history`.
Every parameter, kind and default: `GET /v2/prices?help=all`.

## What it returns

| Kind | Returns | Operation page |
| - | - | - |
| `history` (default) | api.quote\_history: one ticker, oldest first, 1 year to the latest session by default, paged with the function's p\_after cursor. With no id: the research universe (the tickers held). | [Historical stock prices](https://octo-98895abd.mintlify.site/api-docs/v2/operations/prices/history.md) |
| `latest` | api.quote\_latest: the ticker's newest session (raw, adjusted false). With no id: the research universe. | [Latest closing price](https://octo-98895abd.mintlify.site/api-docs/v2/operations/prices/latest.md) |
| `session` | One session's quotes from one price view (raw, adjusted false). Paged with order + limit + offset; the default session is pinned in the cursor. | [Market session](https://octo-98895abd.mintlify.site/api-docs/v2/operations/prices/session.md) |
| `index` | api.index\_history: one B3 index code (IBOV, IFIX, ...), levels as published (total-return indices, not adjusted). With no id the SQL refusal names the codes held. | [Index history](https://octo-98895abd.mintlify.site/api-docs/v2/operations/prices/index.md) |
| `forward` | api.trade\_consolidated\_history: one FORWARD-segment ticker; last\_price is the close, ref\_price is never a trade. | [Forward prices](https://octo-98895abd.mintlify.site/api-docs/v2/operations/prices/forward.md) |
| `risk` | api.risk\_decompose: one row for one share or unit. market\_share, sector\_share and residual\_share of the daily return variance add to 1; betas, gamma (the sector index's beta to IBOV), hedge ratios per R\$ 1 long, annualized volatilities, and the same split without shock sessions (ex\_shock\_\*). OLS cascade on daily simple returns from the joined total-return levels. The window is from..to (default 12 months); at most 1000 sessions. Realized and historical only, not advice. | [Risk decomposition](https://octo-98895abd.mintlify.site/api-docs/v2/operations/prices/risk.md) |

## Main parameters

| Parameter | Default | Meaning |
| - | - | - |
| `id` | none | By kind: history, latest take a B3 ticker (PETR4); session takes a B3 ticker (none: every ticker of the session); index takes a B3 index code (IBOV, IFIX, ...); forward takes a B3 FORWARD-segment ticker; risk takes a B3 share or unit ticker (ITUB4). Required for kind risk. With no id, kinds history, latest read api.research\_universe (what SILO holds). |
| `kind` | history | history: one ticker's daily series. latest: its newest session. session: every quote of one session (the seven price views in one). index: a B3 index's daily levels. forward: B3 FORWARD-segment prints (fixed-income ETFs COTAHIST does not carry). risk: one share's daily return variance split into IBOV, a sector index and the residual, one row (realized, not advice). |
| `freq` | day | kind history, index, forward. month: the last session of each month, selected from the daily rows (no interpolation; a month with no session has no row). |

With no `from`, a windowed kind reads the 12 months up to `to`.

## Tier limits

| Limit | Anonymous | Signed in | Pro |
| - | - | - | - |
| Rows per page (`limit` maximum) | 10 | 100 | 1,000 |
| Rows per call, across pages | 50 | 1,000 | no limit |
| Widest `from`..`to` on `history`, `index`, `forward` | 3 months | 24 months | no limit |
| Requests per minute | 10 | 30 | 300 |

A call over a limit is refused or reports `meta.tier_cap_reached`; it is never cut silently. See [authentication](https://octo-98895abd.mintlify.site/api-docs/v2/authentication.md) for the tiers.

## Example call

```bash theme={null}
curl --request GET 'https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/prices/history?ticker=PETR4&limit=1' \
  --header "Authorization: Bearer $SILO_TOKEN"
```

The same resource in its generic form: `GET /v2/prices?id=PETR4`.

## Example response

Successful response from a Pro request on 2026-11-13. This excerpt omits fields and pagination links.

```json theme={null}
{
  "data": [
    {
      "isin": "BRPETRACNPR6",
      "ticker": "PETR4",
      "close_adj": 32.49,
      "trade_date": "2025-11-13",
      "adjusted": true
    }
  ],
  "meta": {
    "tier": "pro"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.