• mdancho84
  • Junior Member
  • Email
  • Posts 2
  • Reputation 9
  • Member Since
  • Last Active
Email
  • Name Matt Dancho
  • Location State College, PA
  • About Me Founder of Business Science (www.business-science.io) and creator of R packages tidyquant & timetk. Find me on twitter (@mdancho84), linkedin (https://www.linkedin.com/in/mattdancho/), FB, and Github
All Posts Topics Started Likes
R Clients - alphavantager & tidyquant
The `alphavantager` package in R provides a lightweight wrapper to the Alpha Vantage API. Further, the `tidyquant` package integrates `alphavantager` to go from one request to many. Here's how:

Using `alphavantager`:
Code:

library(alphavantager)

# Set API Key (Do this once)
av_api_key("enter-your-api-key-here")

# Get Time Series Data
av_get(symbol = "MSFT", av_fun = "TIME_SERIES_INTRADAY", interval = "15min")


Using `tidyquant`:
Code:

library(tidyquant)

# Set API Key (Do this once)
av_api_key("enter-your-api-key-here")

# Pipe multiple symbols to tq_get()
c("FB", "MSFT") %>%
    tq_get(get = "alphavantager", av_fun = "TIME_SERIES_INTRADAY", interval = "15min")
3 0
How to get Alpha Vantage Stock Data in R: alphavantager and tidyquant
The `alphavantager` package in R provides a lightweight wrapper to the Alpha Vantage API. Further, the `tidyquant` package integrates `alphavantager` to go from one request to many. Here's how:

Using `alphavantager`:
Code:

library(alphavantager)

# Set API Key (Do this once)
av_api_key("enter-your-api-key-here")

# Get Time Series Data
av_get(symbol = "MSFT", av_fun = "TIME_SERIES_INTRADAY", interval = "15min")


Using `tidyquant`:
Code:

library(tidyquant)

# Set API Key (Do this once)
av_api_key("enter-your-api-key-here")

# Pipe multiple symbols to tq_get()
c("FB", "MSFT") %>%
    tq_get(get = "alphavantager", av_fun = "TIME_SERIES_INTRADAY", interval = "15min")
6 0
count post selected

Add a Website Forum to your website.