pull_equity_market: Retrieves equity historical market data.

Description Usage Arguments Value See Also Examples

Description

Provided with a set of equity Bloomberg tickers and a time period, queries Bloomberg for the corresponding equity historical market data or retrieves it from an existing storethat SQLite database..

Usage

1
2
3
4
5
6
7
8
9
pull_equity_market(
  source = "Bloomberg",
  tickers,
  start,
  end,
  verbose = T,
  file = NULL,
  ...
)

Arguments

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.

start

a scalar character vector. Specifies the starting date for the query in the following format: 'yyyy-mm-dd'.

end

a scalar character vector. Specifies the end date for the query in the following format: 'yyyy-mm-dd'.

verbose

a logical scalar vector. Should progression messages be printed? Defaults to TRUE.

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 bdh function from the Rblpapi package used for the query (options parameter).

Value

An S4 object of class EquityMarket.

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

    BBG_mkt <- pull_equity_market(source = "Bloomberg",
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))

    storethat_mkt <- pull_equity_market(source = "storethat",
      tickers = c("BP/ LN Equity", "WEIR LN Equity"),
      start = "2000-01-01", end = as.character(Sys.Date()))

  
## End(Not run)

bautheac/pullit documentation built on June 7, 2021, 12:11 p.m.