Description Usage Arguments Value Author(s) Examples
View source: R/coingecko_price.R
Get OHLC candle data from the CoinGecko web api for a given Id (not Symbol) Candle's body: 1 - 2 days: 30 minutes 3 - 30 days: 4 hours 31 and before: 4 days https://www.coingecko.com/en/api/documentation
1 | get_coingecko_ohlc(id = NULL, cur = "usd", days = "max")
|
id |
string Id |
cur |
string currency (defaults to 'usd') |
days |
integer (1/7/14/30/90/180/365) or string "max" |
data.frame of date, open, high, low, close, Id, and epoch (unix time)
Roger J. Bos, roger.bos@gmail.com
1 2 | tmp <- get_coingecko_ohlc("cardano", days = 30)
tmp <- get_coingecko_ohlc("bitcoin", days = "max")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.