Description Usage Arguments Value Examples
View source: R/crypto_currencies.R
This function can be used to get the price in time of a cryptocurrency.
1 | get_token_price(id, days, interval)
|
id |
The cryptocurrency id, get it with get_token_id() method |
days |
The days in the past since you want to get the data. |
interval |
"daily" or "hourly", note that chosing "hourly" the max days returned are 90 |
A tibble containing the cryptocurrency history
1 2 | btc = get_token_price("bitcoin");
bnb = get_token_price("binance-coin");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.