README.md

updateprices

Background

Example usage

update_prices

#'  ## run through each of the below examples in order
#'  ## download OHLCV series for each major index ETF
#'  update_prices(asset_symbols = c('SPY', 'QQQ', 'DIA', 'IWM'))
#'  ## remove IWM OHLCV data from ./prices
#'  update_prices(asset_symbols = c('SPY', 'QQQ', 'DIA'))
#'  ## add IWM again and update prices for SPY, QQQ, DIA
#'  ## note that, unlike above, this doesn't remove OHLCV previously downloaded
#'  update_prices(asset_symbols = 'IWM', append_asset_symbols = TRUE)
#'  ## update prices for all symbols
#'  update_prices()
#'  ## update prices for all symbols and add all Dow stocks
#'  update_prices(include_index_symbols = 'DOW')
#'  ## remove the Dow stocks
#'  update_prices(asset_symbols = c('SPY', 'QQQ', 'DIA', 'IWM'))

ls_prices

ls_prices()


causality-loop/updateprices documentation built on Aug. 31, 2022, 5:36 a.m.