getQuote {quantmod} | R Documentation |
Fetch current stock quote(s) from specified source. At present this only handle sourcing quotes from Yahoo Finance, but it will be extended to additional sources over time.
getQuote(Symbols, src = "yahoo", what = standardQuote(), ...) standardQuote(src="yahoo") yahooQF(names)
Symbols |
character string of symbols, seperated by semi-colons |
src |
source of data (only yahoo is implemented) |
what |
what should be retrieved |
names |
which data should be retrieved |
... |
currently unused |
A maximum of 200 symbols may be requested per call to Yahoo!, and
all requested will be returned in one data.frame object.
getQuote
returns a data frame with rows matching the number of Symbols
requested, and the columns matching the requested columns.
The what
argument allows for specific data to be requested
from yahoo, using Yahoo!'s formatting string. A list and interactive
selection tool can be seen with yahooQF
.
standardQuote
currently only applied to Yahoo! data, and returns
an object of class quoteFormat, for use within the getQuote
function.
Jeffrey A. Ryan
Yahoo! Finance finance.yahoo.com gummy-stuff.org www.gummy-stuff.org/Yahoo-data.htm
## Not run: getQuote("AAPL") getQuote("QQQQ;SPY;^VXN",what=yahooQF(c("Bid","Ask"))) standardQuote() yahooFQ() ## End(Not run)