The number of symbols per request is limited to 200 for Yahoo! and 100 for
Alpha Vantage. getQuote
will make multiple requests if more than the
maximum number of symbols are requested. It will then combine the results of
all the requests and return one data frame. The data frame will contain a
column for each requested data field, and the requested symbols will be stored
in the row names.
In order to import quotes from Alpha Vantage, you must obtain an
API key by completing a free, one-time registration at their website:
https://www.alphavantage.co/. Then you can call getQuote
with
src = "av"
and api.key = "[your key]"
.
The what
argument allows for specific data to be requested. For
getQuote.yahoo
, the value of what
should be a quoteFormat
object like that returned by standardQuote
. The yahooQF
function
will create an interactive selection tool if the what
argument is
missing. The what
argument is currently ignored for Alpha Vantage data
because only a few fields are available.
standardQuote
currently only applies to the Yahoo! data source. It
returns a quoteFormat
object to use with the getQuote
function.
yahooQuote.EOD
is a constant quoteFormat
object for OHLCV data.