update_prices()
once a day, either pre- or post-market#' ## 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.