Skip to contents

Asks Yahoo Finance for the daily prices from start_date to now, in one request. A failed download is reported as a message instead of an error.

Usage

download_history(index, start_date)

Arguments

index

One row of get_indices().

start_date

Date. The first day to download.

Value

The prices, as described in parse_chart(), or NULL when nothing could be downloaded.

Examples

if (FALSE) { # \dontrun{
golemstockindices:::download_history(get_indices()[1, ], Sys.Date() - 30)
} # }