# NOT RUN {
# Get data for SPY at an interval of 1 minute in the standard xts format.
data <- getAlphaVantageData(symbols = "SPY", apiKey = "yourKey", interval = "1min")
# Get data for 3M and Goldman Sachs at a 5 minute interval in the data.table format.
# The data.tables will be put in a list.
data <- getAlphaVantageData(symbols = c("MMM", "GS"), interval = "5min",
outputType = "DT", apiKey = 'yourKey')
# Get data for JPM and Citicorp at a 15 minute interval in the xts format.
# The xts objects will be put in a list.
data <- getAlphaVantageData(symbols = c("JPM", "C"), interval = "15min",
outputType = "xts", apiKey = 'yourKey')
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab