← Back to all sparks
B

bbk

ANALYTICS
Velocity0.0

R package bbk by m-muecke — release notes from GitHub.

One R interface is absorbing the world's central bank data portals, one API at a time.

central-bank-datamacro-statisticsr-packageapi-wrappersdmxdata-harmonisation
Current state
bbk began as a Bundesbank client and has become a single R interface to central bank statistics generally: the ECB, BIS, and the national banks of Switzerland, Canada, the UK, France, Spain, Austria, Sweden, Norway, Portugal, Japan, Poland, the Czech Republic, and now Brazil and Mexico. Each provider gets a consistent set of verbs — a data function, a dimension function for the dataflow structure, and provider-specific extras like PRIBOR or CZEONIA fixings. Response caching, data.table returns, and an updated_after argument for incremental retrieval are shared plumbing rather than per-provider features.
Where it's heading
The expansion is steady and the integration work is what makes it more than a list of wrappers: arguments introduced for one provider get pushed to the others, dimension introspection is being generalised across dataflows, and the bug fixes in recent releases are almost all about the same class of problem — series with missing observations, unsupported frequency codes, or date/value misalignment breaking a parser written for a tidier feed. The maintainer ships the same infrastructure across their packages in lockstep; bbk 0.9.0 and the sibling treasury package's 0.5.0 landed identical opt-in caching within minutes of each other. Geography is the visible frontier, but consistency across an increasingly ragged set of upstream APIs is the actual work.
Prediction
Expect more national central banks to be added on the same template, and the newer providers to be retrofitted with the dimension and updated_after functions the older ones already have.

Recent moves

  1. 1mo ago

    Brazil and Mexico join, bringing survey expectations data

    ⚡ SPARK

    The first Latin American central banks arrive, and with Brazil comes a kind of series the package has not carried before: the Focus survey of market expectations, which is forecast data rather than observed official statistics. Banxico support follows the established template, including an API key read from the environment. It is the same accretion pattern as previous releases, but the data type is new.

    View source ↗
  2. 2mo ago

    Czech National Bank support lands with a broad parser repair

    The CNB ARAD database gets the full treatment — data, indicators, dimensions, snapshots, plus PRIBOR and the CZEONIA overnight rate — while Banque de France and the SNB pick up the dimension and metadata functions the other providers already had. The long bug-fix list is the more telling part: unsupported frequency codes, empty observation sets, and misaligned dates and values were each breaking a different provider, which is the recurring cost of normalising ragged upstream feeds.

    View source ↗
  3. 3mo ago

    Incremental retrieval generalised beyond the ECB endpoint

    updated_after, previously an ECB-only argument, now works on the Bundesbank, BIS and Banco de Portugal functions and accepts Date, POSIXct or ISO 8601 input — a clear instance of the pattern where a feature proven on one provider gets pushed across the set. Portugal, Japan and Poland join in the same release, and a silent BIS regression that returned zero rows after the endpoint changed its SDMX format is fixed.

    View source ↗
  4. 4mo ago

    Opt-in response caching plus dimension introspection everywhere

    The release that turned a set of provider wrappers into something with shared infrastructure: an opt-in one-day response cache, and dimension functions arriving simultaneously for the Bundesbank, BIS, ECB, Norges Bank and SNB so dataflow structure can be inspected uniformly. BIS, Norges Bank and the Riksbank join as providers, and boc_data() renames its rate column to value for consistency with everything else.

    View source ↗
  5. 10mo ago

    Bank of Canada data and exchange rates added

    A small release adding one provider and its exchange rates, plus a missing-data fix in bbk_series(). Routine on its own, but part of the steady per-release provider accretion that defines this package's arc.

    View source ↗
  6. 11mo ago

    Four European central banks added; validation moves to checkmate

    The Bank of England, Banque de France, Banco de España and the Austrian National Bank arrive together — the release where the package's scope clearly stopped being Bundesbank-plus-ECB. Switching input validation to checkmate is the kind of groundwork that pays off once a dozen providers share the same argument checks.

    View source ↗