[R-SIG-Finance] getquote function

Samuel Wilson samuelcoltwilson at gmail.com
Mon Jul 27 18:56:59 CEST 2015


Small follow up in-case anyone is interested, appears to be only on select
symbols (for example, XIV), I think the problem is at Yahoo's end....

> ticker<-c("IWM","XIV","SPY","TLT","EFA","^IXIC","ZIV")> getQuote(ticker)               Trade Time      Last   Change % Change    Open     High      Low   Volume
IWM   2015-07-27 12:41:00  120.7386  -0.8414 -0.6921%  121.13 121.3200
120.2700 17553725
XIV   2015-07-24 04:00:00   46.2000   0.0000   +0.00%   43.62      N/A
     N/A        0
SPY   2015-07-27 12:41:00  206.9500  -1.0500   -0.50%  206.94   207.55
  206.26 57283787
TLT   2015-07-27 12:41:00  121.6400   0.2500   +0.21%  122.19   122.29
  121.48  4531597
EFA   2015-07-27 12:41:00   63.5701  -0.3199 -0.5007%   63.74  63.7500
 63.5000  9169989
^IXIC 2015-07-27 12:55:00 5040.9500 -47.6800   -0.94% 5055.92  5072.88
 5033.31        0
ZIV   2015-07-24 04:00:00   48.7300   0.0000   +0.00%   47.85      N/A
     N/A        0



On Mon, Jul 27, 2015 at 9:29 AM, G See <gsee000 at gmail.com> wrote:

> 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.
>

	[[alternative HTML version deleted]]



More information about the R-SIG-Finance mailing list