riingo_crypto_prices {riingo} | R Documentation |
Get cryptocurrency prices aggregated through Tiingo
Description
Get cryptocurrency prices aggregated through Tiingo
Usage
riingo_crypto_prices(
ticker,
start_date = NULL,
end_date = NULL,
resample_frequency = "1day",
base_currency = NULL,
exchanges = NULL,
convert_currency = NULL,
raw = FALSE
)
Arguments
ticker |
One or more cryptocurrency tickers.
Specified as |
start_date |
The first date to download data for.
A character in the form YYYY-MM-DD, or a |
end_date |
The last date to download data for.
A character in the form YYYY-MM-DD, or a |
resample_frequency |
For Tiingo data, a character specified as one of:
For IEX data, a character specified at the For Crypto data, a character specified at the |
base_currency |
Instead of |
exchanges |
If you would like to limit the query to a subset of exchanges,
pass a comma-separated list of exchanges to select. Example) |
convert_currency |
This parameter will convert the return data into another
fx rate. For example if querying |
raw |
If |
Examples
## Not run:
# Bitcoin prices
riingo_crypto_prices("btcusd")
# Bitcoin in USD and EUR
riingo_crypto_prices(c("btcusd", "btceur"), start_date = "2018-01-01", resample_frequency = "5min")
# Bitcoin raw data
riingo_crypto_prices("btcusd", raw = TRUE)
# Only use the POLONIEX exchange
riingo_crypto_prices("btcusd", raw = TRUE, exchanges = "POLONIEX")
# All btc___ crypotcurrency pairs
riingo_crypto_prices(base_currency = "btc")
## End(Not run)