knitr::opts_chunk$set(collapse = TRUE, echo = TRUE, comment = "#>", fig.path = "README-") data(list = c("fields", "months", "rolls", "tickers_cftc", "tickers_futures"), package = "BBGsymbols")
BBGsymbols provides a collection of Bloomberg related helper datasets conveniently packaged for consumption in R.
Install the development version from github with: devtools::install_github("bautheac/BBGsymbols")
.
The fields
dataset gathers common Bloomberg query fields. It provides popular historical and contemporaneous data fields that are likely to provide the necessary information and beyond for any rigorous research or more applied work in finance and financial economics. Financial instruments covered at the time of writing include 'equity', referring to any equity like security, 'fund' encompassing any money managing entity and 'futures' covering the futures markets. The author welcomes pull requests that could help expanding the current coverage.
library(BBGsymbols) head(fields)
The months
dataset details the symbols used to refer to calendar months in Bloomberg and financial markets in general. It is particularly useful when working with financial derivative instruments such as futures contracts.
months
The rolls
dataset details the symbols used to refer to the various roll types and adjustments available in Bloomberg when working with futures term structure contracts. These symbols can be used to construct bespoke tickers that allow the user to query Bloomberg for futures term structure data with the desired roll characteristics.
rolls
The tickers_cftc
dataset gathers Bloomberg position data tickers for a number of futures series. These tickers allow direct retrieval from Bloomberg via the pullit package of corresponding position data as reported by the US Commodity Futures Trading Commission (CFTC) in a collection of weekly market reports including the 'legacy', 'disaggregated', 'supplemental' and 'traders in financial futures' (TFF) reports. See ?tickers_cftc
for details.
tail(tickers_cftc)
The tickers_futures
dataset gathers futures active contract Bloomberg tickers as well as a collection of qualitative information for several popular futures series including commodity, currency, financial and index futures with underlyings from various asset classes.
head(tickers_futures)
Although BBGsymbols is self-contained it belongs to the finRes suite of packages where it plays an important role in providing support to the pullit and storethat packages for collecting financial data from Bloomberg and storing it locally as well as updating it and eventually retrieving it where/when a Bloomberg connection is not available.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.