BNR rate on a day
rateGet the official BNR reference exchange rate for a currency on a given date, falling back to the last banking day's fixing for weekends, holidays, or before publication.
Instructions
The National Bank of Romania's reference rate in force on a day: RON per multiplier units of the currency (1, or 100 for HUF, JPY, KRW and a few others), as the exact text BNR published, with published_on, the date of the fixing it is. A weekend, a holiday, or today before BNR publishes (about 13:00 Bucharest) takes the last banking day's fixing. Use it for any EUR/RON or other conversion stated on a date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day, YYYY-MM-DD in Bucharest; default today. | |
| currency | Yes | ISO 4217 code: EUR, USD, GBP, CHF, ... (XAU gold, XDR SDR); case ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| date | Yes | ||
| note | No | ||
| rate | Yes | BNR's exact text, RON per `multiplier` units | |
| source | Yes | ||
| meaning | Yes | ||
| currency | Yes | ||
| multiplier | Yes | ||
| published_on | Yes | The date of the fixing this rate is |