My code
library(Rblpapi)
library(purrr)
blpConnect()
tickers = c("AAPL US Equity", "VOD LN Equity")
adjustmentFactors = setNames({
tickers %>% map(function(ticker){
res = bds(
security = ticker
, field = "EQY_DVD_ADJUST_FACT"
, overrides = c("CORPORATE_ACTIONS_FILTER"="ABNORMAL_CASH|CAPITAL_CHANGE|NORMAL_CASH")
)
message(ticker)
res
})
}, tickers)
This takes a long time to run because each call to bds
is a separate request. Is there a way to package this up into a single request? Or maybe some other way of speeding it up?