[R-SIG-Finance] getquote function

G See gsee000 at gmail.com
Mon Jul 27 18:29:05 CEST 2015


Works for me, but it's not that unusual for different yahoo servers to
give different answers (which you don't have much control over).

getQuote("SPY", src="yahoo")
#             Trade Time   Last Change % Change   Open   High    Low   Volume
#SPY 2015-07-27 12:10:00 206.93  -1.07   -0.51% 206.94 207.55 206.26 54683280

#devtools::install_github("gsee/qmao")
suppressPackageStartupMessages(library(qmao))

getQuote("SPY", src="google")
#              TradeTime   Last Change PctChg Exchange GoogleID
#SPY 2015-07-27 12:27:00 207.01  -0.99  -0.48 NYSEARCA   700145

getQuote("SPY", src="bats", what="bbo")
#  TradeTime BidSize BidPrice AskPrice AskSize    Last LastSize row.names
#1  12:27:01    1965      207   207.01    3135 207.005       18       SPY

Garrett

On Mon, Jul 27, 2015 at 11:23 AM, Samuel Wilson
<samuelcoltwilson at gmail.com> wrote:
> Quick question,
>
> Anyone else having trouble with getQuote function this morning (quantmod
> library)?
>
> Mine will not pull a current delayed quote, but is pulling last close.
> Worked on Friday, but today not.  Before I spend time troubling shooting, I
> want to figure out if anyone else is having this problem.
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list