powered by
coingecko_price_history
coingecko_price_history(id, date, localization = "false", timeout_seconds = 60)
returns a list containing data about asset pricing.
The asset id you wish to query. IDs can be retrieved with the coingecko_coins function.
the date you wish to query formatted as "dd-mm-yyyy"
"true" or "false" to include/exclude localized languages in the response. The default value is "false".
seconds until the query times out. Default is 60.
price <- coingecko_price_history("bitcoin", "30-12-2017", timeout_seconds = 4.5) price$market_data$current_price$usd
Run the code above in your browser using DataLab