Skip to contents

The first call downloads the whole history, from the from day of the index when it has one, and keeps it on disk (see disk_cache()). Later calls use the kept history, and once it is more than an hour old download only the last two weeks, which also replace the kept days of those weeks, in case Yahoo Finance corrected them. When bringing it up to date fails, the kept history is used.

Usage

index_history(index)

Arguments

index

One row of get_indices().

Value

The whole price history of the index, or NULL when it could not be downloaded.

Examples

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