Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bsef

Get Bloomberg SEF data


Description

The Bloomberg Swap Execution Facility (SEF) offers customers the ability to execute derivative instruments across a number of different asset classes. It is required to make publicly available price, trading volume and other trading data. It publishes this data on its website. I have reverse engineered the JavaScript libraries used by its website to call the Bloomberg Application Service using POST requests to a target URL.

Usage

bsef(date, asset_class)

Arguments

date

the date for which data is required as Date or DateTime object. Only the year, month and day elements of the object are used. Must be of length one.

asset_class

the asset class for which you would like to download trade data. Valid inputs are "CR" (credit), "IR" (rates), "EQ" (equities), "FX" (foreign exchange), "CO" (commodities) and must be a string.

Value

a tibble containing the requested data, or an empty tibble if data is unavailable

References

Examples

## Not run: 
library (lubridate)
# All asset classes
bsef(ymd(20140528), "IR")

## End(Not run)

dataonderivatives

Easily Source Publicly Available Data on Derivatives

v0.3.1
GPL-2
Authors
Imanuel Costigan [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.