get_coingecko_history: get_coingecko_history

Description Usage Arguments Value Author(s) Examples

View source: R/coingecko_price.R

Description

Get historical data from the CoinGecko web api for a given Id (not Symbol) https://www.coingecko.com/en/api/documentation

Usage

1
get_coingecko_history(id = NULL, cur = "usd", days = "max")

Arguments

id

string Id

cur

string currency (defaults to 'usd')

days

integer (1/7/14/30/90/180/365) or string "max"

Value

data.frame of date, price, market_cap, volume, Id, and epoch (unix time)

Author(s)

Roger J. Bos, roger.bos@gmail.com

Examples

1
2
tmp <- get_coingecko_history("cardano", days = 30)
tmp <- get_coingecko_history("bitcoin", days = "max")

rogerjbos/cryptor documentation built on Dec. 22, 2021, 5:16 p.m.