coingecko_price_history {cryptotrackr}R Documentation

coingecko_price_history

Description

coingecko_price_history

Usage

coingecko_price_history(id, date, localization = "false", timeout_seconds = 60)

Arguments

id

The asset id you wish to query. IDs can be retrieved with the coingecko_coins function.

date

the date you wish to query formatted as "dd-mm-yyyy"

localization

"true" or "false" to include/exclude localized languages in the response. The default value is "false".

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns a list containing data about asset pricing.

Examples

price <- coingecko_price_history("bitcoin", "30-12-2017", timeout_seconds = 4.5)
price$market_data$current_price$usd

[Package cryptotrackr version 1.3.3 Index]