get_token_price: Get Token Price

Description Usage Arguments Value Examples

View source: R/crypto_currencies.R

Description

This function can be used to get the price in time of a cryptocurrency.

Usage

1
get_token_price(id, days, interval)

Arguments

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

Value

A tibble containing the cryptocurrency history

Examples

1
2
btc = get_token_price("bitcoin");
bnb = get_token_price("binance-coin");

fradeca01/cryptoprice documentation built on Dec. 20, 2021, 8:50 a.m.