Learn R Programming

bbk

bbk is minimal R client for the following APIs:

In the future, it may be extended to other central banks and financial institutions. Feel free to open an issue if you have a specific request.

Installation

You can install the released version of bbk from CRAN with:

install.packages("bbk")

And the development version from GitHub with:

# install.packages("pak")
pak::pak("m-muecke/bbk")

Usage

bbk functions are prefixed according to the central bank they access (bbk_, ecb_, snb_, bdp_, bis_, boe_, boj_, bde_, bdf_, cnb_, nbp_, onb_, boc_, nob_, srb_) and follow the naming conventions of their respective APIs.

The typical workflow involves:

  1. Finding the time series identifier on the relevant central bank’s website
  2. Using the appropriate bbk function to retrieve the data
library(bbk)

# Deutsche Bundesbank - fetch 10 year daily yield curve
yield_curve = bbk_data(
  flow = "BBSIS",
  key = "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A",
  start_period = "2020-01-01"
)

Related work

  • BIS: R package for downloading data from the Bank for International Settlements (BIS).
  • BISdata: R package for downloading data from the Bank for International Settlements (BIS).
  • boe: R package for downloading data from the Bank of England (BoE).
  • BOJ: R package for downloading data from the Bank of Japan (BoJ).
  • SNBdata: R package for downloading data from the Swiss National Bank (SNB).
  • bundesbank: R scripts for downloading time-series data from the Bundesbank.
  • czechrates: R package for Czech National Bank (CNB) foreign exchange and interest rates.
  • ecb: R interface to the European Central Bank’s Statistical Data Warehouse (SDW) API.
  • oenb: R package for accessing the OeNB’s API.
  • pdfetch: R package for downloading economic and financial time series from public sources.
  • rnbp: R package for accessing the National Bank of Poland (NBP) API.
  • readsdmx: R package for reading SDMX data and metadata.
  • rsdmx: R package for reading SDMX data and metadata.
  • rwebstat: R package for accessing the Banque de France’s Webstat API.
  • tidyBdE: R package for accessing the Banco de España’s API.
  • valet: R client to the Bank of Canada Valet API.

Copy Link

Version

Install

install.packages('bbk')

Monthly Downloads

517

Version

0.11.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Maximilian Muecke

Last Published

June 11th, 2026

Functions in bbk (0.11.0)

bdp_series

Fetch Banco de Portugal (BdP) series metadata
boc_data

Fetch Bank of Canada (BoC) data
boc_fx_rates

Fetch Bank of Canada foreign exchange rates
cnb_dimension

Fetch Czech National Bank (CNB) ARAD dimensions
cnb_data

Fetch Czech National Bank (CNB) ARAD time series data
ecb_data

Fetch European Central Bank (ECB) data
ecb_dimension

Fetch European Central Bank (ECB) dimensions
cnb_indicators

Fetch Czech National Bank (CNB) ARAD indicators
boc_metadata

Fetch Bank of Canada (BoC) metadata (details)
boe_data

Fetch Bank of England (BoE) data
cnb_pribor

Fetch Czech National Bank (CNB) PRIBOR rates
cnb_fx_other_rates

Fetch Czech National Bank (CNB) exchange rates of other currencies
cnb_fx_rates

Fetch Czech National Bank (CNB) exchange rates
boj_metadata

Fetch Bank of Japan (BoJ) metadata
boj_data

Fetch Bank of Japan (BoJ) data
onb_dimension

Fetch Österreichische Nationalbank (OeNB) dimension
onb_metadata

Fetch Österreichische Nationalbank (OeNB) metadata
onb_hierarchy

Fetch Österreichische Nationalbank (OeNB) hierarchy
ecb_metadata

Fetch European Central Bank (ECB) metadata
ecb_fx_rates

Fetch Euro foreign exchange reference rates
onb_frequency

Fetch Österreichische Nationalbank (OeNB) data frequency
nob_data

Fetch Norges Bank (NoB) data
nob_dimension

Fetch Norges Bank (NoB) dimensions
snb_metadata

Fetch Swiss National Bank (SNB) cube metadata
snb_dimension

Fetch Swiss National Bank (SNB) dimensions
snb_data

Fetch Swiss National Bank (SNB) data
onb_toc

Fetch Österreichische Nationalbank (OeNB) table of contents
nob_metadata

Fetch Norges Bank (NoB) metadata
onb_data

Fetch Österreichische Nationalbank (OeNB) data
srb_series

Fetch Sveriges Riksbank (SRb) series metadata
srb_calendar

Fetch Sveriges Riksbank (SRb) calendar days
snb_toc

Fetch Swiss National Bank (SNB) table of contents
cnb_snapshots

Fetch Czech National Bank (CNB) ARAD snapshots
srb_data

Fetch Sveriges Riksbank (SRb) data
cnb_czeonia

Fetch Czech National Bank (CNB) CZEONIA rates
srb_cross_rates

Fetch Sveriges Riksbank (SRb) cross rates
nbp_gold

Fetch National Bank of Poland (NBP) gold prices
cnb_tree

Fetch Czech National Bank (CNB) ARAD indicator tree
cache

Get or manage the bbk API cache
nbp_fx_rates

Fetch National Bank of Poland (NBP) exchange rates
bbk_series

Fetch the Deutsche Bundesbank (BBk) series
bbk-package

bbk: Client for Central Bank APIs
bdf_data

Fetch Banque de France (BdF) data
bbk_dimension

Fetch Deutsche Bundesbank (BBk) dimensions
bdf_dataset

Fetch Banque de France (BdF) datasets
bbk_metadata

Fetch Deutsche Bundesbank (BBk) metadata
bde_data

Fetch Banco de España (BdE) data
bbk_data

Fetch Deutsche Bundesbank (BBk) data
bde_latest

Fetch latest Banco de España (BdE) data
bdf_codelist

Fetch Banque de France (BdF) codelists
bdp_domain

Fetch Banco de Portugal (BdP) domains
bdp_dataset

Fetch Banco de Portugal (BdP) datasets
bdp_dimension

Fetch Banco de Portugal (BdP) dimensions
bis_metadata

Fetch Bank for International Settlements (BIS) metadata
bdf_dimension

Fetch Banque de France (BdF) dimensions
bis_dimension

Fetch Bank for International Settlements (BIS) dimensions
bdp_data

Fetch Banco de Portugal (BdP) data
bis_data

Fetch Bank for International Settlements (BIS) data
boc_catalog

Fetch Bank of Canada (BoC) available series or group