A history with missing days (see has_gaps()) is returned but not kept,
so the next call downloads it again.
Arguments
- key
Key of the coin in
disk_cache().- history
Price history of the coin, or
NULLwhen the download failed.- from
Date. The first day asked for, which can be earlier than the first day of the coin.
Examples
if (FALSE) { # \dontrun{
coins <- get_coins()
btc <- coins[coins$name_symbol == "Bitcoin (BTC)", ]
crypto:::keep_history("history_1", crypto:::download_history(btc, Sys.Date() - 30), Sys.Date() - 30)
} # }