Sgs Series
sgs_seriesFetch any Banco Central do Brasil SGS time series by numeric code. Common codes: 432=Selic target, 11=Selic daily, 433=IPCA inflation, 1=USD/BRL PTAX sell, 21619=USD/BRL, 4389=CDI. Returns [{data:"dd/MM/yyyy", valor:"..."}]. Use "last" for the most recent N observations, or a date range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date dd/MM/yyyy, e.g. "31/12/2025". Optional. | |
| code | Yes | SGS series code, e.g. 432 (Selic target). | |
| last | No | Return only the most recent N observations, e.g. 12. Omit for full/ranged series. | |
| start | No | Start date dd/MM/yyyy, e.g. "01/01/2025". Optional. |