business-science/alphavantager

av_get returns only the default "compact" result set of 100 rows

Closed this issue · 3 comments

fDF <- av_get("MSFT", "TIME_SERIES_DAILY_ADJUSTED", "full")
cDF <- av_get("MSFT", "TIME_SERIES_DAILY_ADJUSTED", "compact")

The number of rows returned is 100 in both cases.
Docs state that the default outputsize parameter is "compact".
Perhaps the parameter is not seen or processed properly

If I use a url and do a read.table:
url <- "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&apikey=MYapiKey&outputsize=full&datatype=csv&symbol=MSFT"
csvDF <- read.table(url, header=TRUE, sep=",")

csvDF has 4000+ rows

Maybe try specifying arguments per the documentation.

fDF <- av_get("MSFT", av_fun = "TIME_SERIES_DAILY_ADJUSTED", outputsize = "full")

Hmm, not sure. A good avenue might be to add your question to StackOverflow. I'm sure someone has previously tried to do something similar (and may have succeeded).