Skip to contents

For an index not kept yet, the whole history is downloaded, from its from day when it has one, and kept on disk (see disk_cache()). A kept history more than an hour old is brought up to date with its last two weeks, which also replace the kept days of those weeks, in case Yahoo Finance corrected them; when that fails, the kept history is used. The downloads of all the indices run at the same time (see download_histories()).

Usage

index_histories(indices)

Arguments

indices

Rows of get_indices().

Value

A list with an element per row: the whole price history of the index, or NULL when it could not be downloaded.

Examples

if (FALSE) { # \dontrun{
golemstockindices:::index_histories(get_indices()[1:3, ])
} # }