Download the daily prices of several indices at the same time
Source:R/fct_data.R
download_histories.RdAsks Yahoo Finance for the daily prices of each index from its
start date to now, one request per index, all sent at once (see
fetch_all()). A failed download is reported as a message instead of an
error, and the other indices are still read.
Arguments
- indices
Rows of
get_indices().- starts
Dates, one per row: the first day to download.
Value
A list with an element per row: the prices, as described in
parse_chart(), or NULL when nothing could be downloaded.
Examples
if (FALSE) { # \dontrun{
golemstockindices:::download_histories(get_indices()[1:3, ], rep(Sys.Date() - 30, 3))
} # }