Provided with a set of equity Bloomberg tickers pulls qualitative information on the corresponding corporations from Bloomberg or retrieves it from an existing storethat SQLite database.
pull_equity_info(source = "Bloomberg", tickers, file = NULL, ...)
source | a scalar character vector. Specifies the data source for the query: "Bloomberg" or "storethat". Defaults to "Bloomberg". |
---|---|
tickers | a chatacter vector. Specifies the equity Bloomberg tickers to query data for. |
file | a scalar chatacter vector. Optional parameter that specifies the target storethat SQLite database file to retrieve data from. |
... | optional parameters to pass to the bdp function from the
Rblpapi package used
for the query ( |
An S4 object of class EquityInfo.
if (FALSE) { BBG_info <- pull_equity_info(source = "Bloomberg", tickers = c("BP/ LN Equity", "WEIR LN Equity")) storethat_info <- pull_equity_info(source = "storethat", tickers = c("BP/ LN Equity", "WEIR LN Equity")) storethat_info <- pull_equity_info(source = "storethat", file = "~/storethat.sqlite", tickers = c("BP/ LN Equity", "WEIR LN Equity")) }