> ## 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 for researchers

> Point in time, survivorship, price adjustment, reproducibility and a citation line, in the v2 gateway.

> [!WARNING]
>
> The v2 gateway is live. The original v1 API stays available until it is retired.

Five things decide whether a result from SILO can be trusted in a paper or a backtest. Each one below names the parameter that controls it and its default. The calls use the base URL from the [v2 quickstart](https://octo-98895abd.mintlify.site/api-docs/v2/quickstart.md):

```bash theme={null}
export SILO_V2="https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2"
```

### Point in time: `as_of`

By default, `statements` returns the latest stored version of every filing. That is **not** point in time: a restated quarter shows its restated numbers.

```bash theme={null}
curl "$SILO_V2/statements?id=PETR4&kind=income&as_of=2020-06-30"
```

With `as_of`, only documents CVM received before that date are read, each at the highest version known then. `as_of` is a hidden parameter: it works but is not in the main table. It does not apply to `kind=versions`, which lists every version on purpose.

### Survivorship: `search?kind=universe&as_of=`

```bash theme={null}
curl "$SILO_V2/search?kind=universe&as_of=2020-01-31"
```

The listed shares and units that traded on that date: the ticker and ISIN pairs whose first and last observed sessions span it, dead names included. Build a sample from this list, not from today's tickers. With no `as_of`, the list holds every pair the B3 tape has seen since 2019-01-02.

### Adjustment: `adjust`

`prices` defaults to `adjust=split`: the close adjusted for splits, groupings and bonus shares. **It is not adjusted for dividends.** No dividend-adjusted series exists in v2.

```bash theme={null}
curl "$SILO_V2/prices?id=PETR4&adjust=none"
```

The cash distributions themselves are in [`events?kind=dividends`](https://octo-98895abd.mintlify.site/api-docs/v2/operations/events/dividends). Apply them yourself if your study needs a total return.

`adjust=none` is the raw close as traded. Every row carries `adjusted` (true or false), so the two never mix silently. Only `kind=history` is adjusted; `latest`, `session`, `index` and `forward` are never adjusted.

### Reproducibility: `meta.request`

Every response echoes, in `meta.request`, every parameter the resource takes with the value the gateway applied, defaults included. Paste it into a methods section and the call can be replayed exactly. `meta.endpoint` names the `api.*` endpoint that answered.

`meta.source` is the same request as one citable line, for example `/v2/prices?id=PETR4&kind=history&from=2025-11-16&to=2026-11-16&...`, and `meta.data_through` is the newest elapsed period SILO holds for the dataset read (`meta.coverage_dataset` names the coverage row). It is `null` where no coverage row applies, such as `search`, `panel`, `screens` and `portfolio`.

`meta.data_version` is planned in the spec but not built yet. Until it is, record the data version from `coverage`:

```bash theme={null}
curl "$SILO_V2/coverage?dataset=quotes"
```

Its `landed_at` and `landed_git_sha` say when the data you read was loaded, and by which version of the pipeline. `data_through` is the newest elapsed period, and `complete_through` is how much the source has fully published.

### Dividends, share counts and free float

These three answer per-stock questions such as yield, payout and liquidity. None of them is filled forward or estimated.

```bash theme={null}
curl "$SILO_V2/events?kind=dividends&id=PETR4"
curl "$SILO_V2/statements?kind=shares&id=PETR4"
curl "$SILO_V2/statements?kind=free_float&id=PETR4"
```

* `events?kind=dividends` is per ticker. It has the value per share, `last_date_with` (B3's last session with the right) and `ex_date` (the next session on the tape, from 2019). `payment_date` is known only from 2025 on and is null before. Each installment is its own row.
* `statements?kind=shares` is per company: PETR3 and PETR4 return the same rows. `source` says which form filed the count: `cvm_itr` and `cvm_dfp` are quarterly from 2020 and include treasury shares, and `cvm_fre` is yearly from 2010 and has no treasury count.
* `statements?kind=free_float` is per company, yearly from 2010. It has the shares in circulation, the percent as the company filed it, and the shareholder counts.
* Share counts and free float serve the newest version of each filing, so they are **not** point in time. `as_of` does not apply to them.

### Debt issues

`statements?kind=debt_issues` lists the debentures, commercial notes, CRI, CRA and other debt one listed company describes in its yearly FRE, from 2010.

```bash theme={null}
curl "$SILO_V2/statements?kind=debt_issues&id=PETR4"
```

* Only listed companies file an FRE. A closed company that issues debentures is not here.
* One row is one issue as filed, often several series. There is no ticker or ISIN, so a row does not join to a traded debenture.
* The rate and the indexer are only in `terms_text`, free text written by the company. SILO does not parse it.
* It serves the newest version of each filing, so it is **not** point in time.

### Citation

Cite the request and the data version, not only the site. A template (fill in the angle brackets):

```text theme={null}
SILO, Brazilian public financial data, API v2. <request URL>. Retrieved <date, UTC-3>. Data landed <landed_at> (pipeline <landed_git_sha>), from coverage. https://github.com/PedroDnT/SILO-BZ
```

The underlying sources are public: CVM, B3, BACEN and IBGE. Name the source of the rows you used as well.


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