Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/getQuote.google.R
getQuote.google
is a
getQuote
"method" for Google,
although it may be called directly.
1 | getQuote.google(Symbols, ...)
|
Symbols |
character vector of ticker symbols, or a comma or semi-colon separated string |
... |
not currently in use |
This pulls real-time market data for stocks with tickers
specified by Symbols
. Although this is not a
documented API, it is used by the Google finance website.
The data should only be used for personal use.
Only 100 Symbols may be requested from google at a time.
If getQuote.google
is called with more than 100
Symbols, blocks of 100 Symbol calls will be made and the
results will be put in a single data.frame
. This
part of the code is mostly copied from Jeff Ryan's
getQuote
.yahoo
a data.frame with rownames corresponding to the ticker symbols, and having the following columns: "TradeTime", "Last", "Change", "PctChg", "Exchange", "GoogleID"
Dirk Eddelbuettel, Jeff Ryan, Garrett See
http://digitalpbk.com/stock/google-finance-get-stock-quote-realtime
1 2 3 4 5 6 7 8 9 10 | ## Not run:
getQuote("SPY", src="google")
getQuote("TYO:7203", src="google") # non-U.S.
getQuote(c("GS", "DE"), src="google") # vector of Symbols
getQuote("EDD;SEE", src="google") #semi-colon delimited
getQuote("GS,SEE,DE,EDD", src="google") #comma delimited
getQuote.google("GOOG") # Can call directly without using quantmod::getQuote
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.