getQuote.google: getQuote from Google

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/getQuote.google.R

Description

getQuote.google is a getQuote "method" for Google, although it may be called directly.

Usage

1
  getQuote.google(Symbols, ...)

Arguments

Symbols

character vector of ticker symbols, or a comma or semi-colon separated string

...

not currently in use

Details

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

Value

a data.frame with rownames corresponding to the ticker symbols, and having the following columns: "TradeTime", "Last", "Change", "PctChg", "Exchange", "GoogleID"

Author(s)

Dirk Eddelbuettel, Jeff Ryan, Garrett See

References

http://digitalpbk.com/stock/google-finance-get-stock-quote-realtime

See Also

getQuote, getQuote.BATS

Examples

 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)

qmao documentation built on May 2, 2019, 4:54 p.m.