currency_rate_get
Get NBRB (National Bank of Belarus) official FX rates against BYN (Belarusian ruble) for USD, EUR, and/or RUB. Rates are BYN per 1 unit of foreign currency. Modes: latest (no dates), single_date (date), range (date_from/date_to, either bound optional), or grouped weekly/monthly aggregates (group_by + range). Only usd/eur/rub are supported; BYN is the implicit base currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Single date in YYYY-MM-DD format. Mutually exclusive with date_from/date_to. | |
| date_to | No | Range end date in YYYY-MM-DD format (inclusive, >= date_from). Open-ended or today-bounded ranges bypass cache. | |
| currency | No | Filter to one supported foreign currency: usd, eur, or rub. Omit to return all three. BYN is the base currency, not a target. | |
| group_by | No | Aggregate by week or month. Requires a date range (date_from/date_to), not a single date. | |
| date_from | No | Range start date in YYYY-MM-DD format (inclusive). Can be omitted for open-start range. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| count | Yes | ||
| date_to | Yes | ||
| results | Yes | ||
| currency | Yes | ||
| group_by | No | ||
| date_from | Yes | ||
| base_currency | Yes |