BNR rates: several currencies, or a window
ratesFetch BNR reference exchange series for one date or a date window, optionally filtered by ISO currency codes, with exact published values and multipliers.
Instructions
BNR's reference rates as series, the exact text BNR published. With date (default today): each currency's rate in force that day, from the day's fixing or the last banking day's before it. With from (and to, default today): every fixing BNR published in the window, oldest first, at most 366 days and 2000 rates a call. Without currencies, every currency BNR published. Each series carries its multiplier (RON per 1, or per 100 for HUF, JPY, KRW and a few others).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | A window's last day, included; default today. Only with from. | |
| date | No | One day, YYYY-MM-DD in Bucharest: the rates in force on it. Not with from. | |
| from | No | A window's first day, YYYY-MM-DD: every fixing from it to `to`. | |
| currencies | No | ISO 4217 codes, e.g. ["EUR", "USD"]; default every currency BNR published. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| to | No | ||
| date | No | The day asked for: each series holds the rate in force on it | |
| from | No | ||
| note | No | ||
| count | Yes | How many rates the series hold | |
| absent | No | Currencies asked for that BNR published no fixing of in the window | |
| series | Yes | One per currency, or per currency and multiplier if BNR changed it within the window | |
| source | Yes |