coingecko_price_history: coingecko_price_history

View source: R/coingecko.R

coingecko_price_historyR 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

cryptotrackr documentation built on June 22, 2024, 10:39 a.m.