{"id":17855371,"url":"https://github.com/m-muecke/bbk","last_synced_at":"2025-03-20T13:30:35.404Z","repository":{"id":215803241,"uuid":"739807762","full_name":"m-muecke/bbk","owner":"m-muecke","description":"R client for central bank APIs","archived":false,"fork":false,"pushed_at":"2025-03-03T21:36:12.000Z","size":9538,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T01:42:59.344Z","etag":null,"topics":["api","bundesbank","central-bank","deutsche-bundesbank","ecb","european-central-bank","r","r-package","smdx","swiss-national-bank"],"latest_commit_sha":null,"homepage":"https://m-muecke.github.io/bbk/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-muecke.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-06T15:56:01.000Z","updated_at":"2025-03-03T21:31:06.000Z","dependencies_parsed_at":"2024-01-17T13:29:50.379Z","dependency_job_id":"0fbc7670-c987-4375-a84b-64e306b2f136","html_url":"https://github.com/m-muecke/bbk","commit_stats":null,"previous_names":["m-muecke/bundesbank"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fbbk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fbbk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fbbk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fbbk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-muecke","download_url":"https://codeload.github.com/m-muecke/bbk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075567,"owners_count":20393979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","bundesbank","central-bank","deutsche-bundesbank","ecb","european-central-bank","r","r-package","smdx","swiss-national-bank"],"created_at":"2024-10-28T02:22:44.164Z","updated_at":"2025-03-20T13:30:35.391Z","avatar_url":"https://github.com/m-muecke.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\noptions(str = strOptions(strict.width = \"cut\"))\n```\n\n# bbk\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![R-CMD-check](https://github.com/m-muecke/bbk/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/m-muecke/bbk/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/bbk)](https://CRAN.R-project.org/package=bbk)\n\u003c!-- badges: end --\u003e\n\nbbk is minimal R client for the following APIs:\n\n- [Deutsche Bundesbank (BBK)](https://www.bundesbank.de/en/statistics/time-series-databases/help-for-sdmx-web-service)\n- [European Central Bank (ECB)](https://data.ecb.europa.eu/help/api/overview)\n- [Swiss National Bank (SNB)](https://data.snb.ch/en)\n\n\u003e In the future, it may be extended to other central banks and financial institutions.\n\u003e Feel free to open an issue if you have a specific request.\n\n## Installation\n\nYou can install the released version of bbk from [CRAN](https://CRAN.R-project.org) with:\n\n```{r, eval = FALSE}\ninstall.packages(\"bbk\")\n```\n\nAnd the development version from [GitHub](https://github.com/) with:\n\n```{r, eval = FALSE}\n# install.packages(\"pak\")\npak::pak(\"m-muecke/bbk\")\n```\n\n## Usage\n\nbbk functions are prefixed with either `bbk_` or `ecb_` depending on the origin of the\ndata and follow the naming convention of the APIs.\nThe usual workflow would be to search for the time series key on the [ECB Portal](https://data.ecb.europa.eu/) or\n[Bundesbank website](https://www.bundesbank.de/en/statistics/time-series-databases)\nand then use it to retrieve the data.\n\n```{r demo, message = FALSE}\nlibrary(bbk)\n\n# fetch 10 year daily yield curve\nyield_curve \u003c- bbk_data(\n  flow = \"BBSIS\",\n  key = \"D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A\",\n  start_period = \"2020-01-01\"\n)\nstr(yield_curve)\n```\n\n```{r plotting, message = FALSE, echo = FALSE, dpi = 300}\nlibrary(ggplot2)\n\nggplot(yield_curve, aes(x = date, y = value)) +\n  geom_line() +\n  theme_minimal() +\n  theme(\n    plot.title = element_text(face = \"bold\"),\n    panel.grid.major.y = element_line(color = \"black\", linewidth = 0.2),\n    panel.grid.major.x = element_blank(),\n    panel.grid.minor = element_blank(),\n    axis.text = element_text(color = \"black\"),\n    axis.title = element_blank()\n  ) +\n  scale_y_continuous(labels = scales::percent) +\n  labs(title = \"Daily Yields of 10-Year Federal Securities\")\n```\n\n## Related work\n\n* [SNBdata](https://github.com/enricoschumann/SNBdata): R package for downloading data from the Swiss National Bank (SNB).\n* [bundesbank](https://github.com/enricoschumann/bundesbank): R scripts for downloading time-series data from the Bundesbank.\n* [ecb](https://github.com/expersso/ecb): R interface to the European Central Bank's Statistical Data Warehouse (SDW) API.\n* [pdfetch](https://github.com/abielr/pdfetch): R package for downloading economic and financial time series from public sources.\n* [readsdmx](https://github.com/mdequeljoe/readsdmx): R package for reading SDMX data and metadata.\n* [rsdmx](https://github.com/opensdmx/rsdmx): R package for reading SDMX data and metadata.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-muecke%2Fbbk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-muecke%2Fbbk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-muecke%2Fbbk/lists"}