Skip to contents

Retrieve the Prague Interbank Offered Rate (PRIBOR) reference rates for all maturities from the CNB API.

Usage

cnb_pribor(date = NULL, year = NULL)

Arguments

date

(NULL | character(1) | Date(1))
The date to query. If NULL, the latest available rates are returned. Mutually exclusive with year. Default NULL.

year

(NULL | integer(1))
A calendar year, returning rates for every working day of that year. Mutually exclusive with date. Default NULL.

Value

A data.table::data.table() with the requested rates. The period column holds the maturity (e.g. "ONE_DAY", "THREE_MONTH") and pribor the rate in percent.

Examples

# \donttest{
# latest rates for all maturities
cnb_pribor()
#>          date      period pribor
#>        <Date>      <char>  <num>
#> 1: 2026-05-27     ONE_DAY   3.50
#> 2: 2026-05-27    ONE_WEEK   3.51
#> 3: 2026-05-27   TWO_WEEKS   3.54
#> 4: 2026-05-27   ONE_MONTH   3.55
#> 5: 2026-05-27 THREE_MONTH   3.57
#> 6: 2026-05-27   SIX_MONTH   3.68
#> 7: 2026-05-27    ONE_YEAR   3.82

# all rates for a given year
cnb_pribor(year = 2024L)
#>             date      period pribor
#>           <Date>      <char>  <num>
#>    1: 2024-01-02     ONE_DAY   6.75
#>    2: 2024-01-02    ONE_WEEK   6.77
#>    3: 2024-01-02   TWO_WEEKS   6.79
#>    4: 2024-01-02   ONE_MONTH   6.80
#>    5: 2024-01-02   TWO_MONTH   6.78
#>   ---                              
#> 2264: 2024-12-31   TWO_MONTH   3.99
#> 2265: 2024-12-31 THREE_MONTH   3.92
#> 2266: 2024-12-31   SIX_MONTH   3.79
#> 2267: 2024-12-31  NINE_MONTH   3.78
#> 2268: 2024-12-31    ONE_YEAR   3.70
# }