getCryptoCurrency: Download daily time series of cryptocurrency from...

View source: R/avEndpoints.R

getCryptoCurrencyR Documentation

Download daily time series of cryptocurrency from Alpha-Vantage

Description

Download cryptocurrency daily time series from Alpha vantage using either a free or premium API key. Includes open high low close, volume and market cap.

Usage

getCryptoCurrency(
  symbol = "BTC",
  market = "USD",
  datatype = "json",
  key = "premium"
)

Arguments

symbol

cryptocurrency symbol, i.e. "BTC" (string)

market

physical currency symbol for quoting i.e. "USD", "CNY", etc.

datatype

"json" or "csv" for return type to be parsed

key

string for the API key to use Alpha Vantage

Value

xts object


shill1729/trader documentation built on Dec. 27, 2022, 10:55 p.m.