Quantmod problem with getQuote with yahooQF options
Hi, I just tried out the examples given in the getQuote but it didn't return the columns as I specified but return the default columns:
fundamentals = getQuote(paste(as.character(as.vector(unique(hrtwts$ticker))),sep=";",collapse=";"),what=yahooQF(c("Bid","Ask")))
downloading set: 1 , 2 , 3 , 4 , 5 , 6 , ...done
head(fundamentals)
Trade Time Last Change % Change Open High Low Volume GOOG 2011-09-30 04:00:00 515.04 -12.46 -2.36% 520.21 524.00 514.38 2724908 AAPL 2011-09-30 04:00:00 381.32 -9.25 -2.37% 387.12 388.89 381.18 19579888 AOL 2011-09-30 04:03:00 12.00 -0.27 -2.20% 12.03 12.46 11.86 2328948 DMD 2011-09-30 04:00:00 8.00 +0.05 +0.63% 7.81 8.01 7.76 154085 AMZN 2011-09-30 04:00:00 216.23 -6.21 -2.79% 218.19 223.00 215.21 6553621 HPQ 2011-09-30 04:00:00 22.45 -1.33 -5.59% 23.57 23.75 22.42 40146916
tail(fundamentals)
Trade Time Last Change % Change Open High Low Volume DNP 2011-09-30 04:00:00 10.000 +0.05 +0.50% 9.95 10.00 9.88 265790 LHO 2011-09-30 04:01:00 19.200 -0.63 -3.18% 19.48 20.03 19.16 1145709 HGT 2011-09-30 04:00:00 21.282 -0.188 -0.88% 21.19 21.5486 21.11 152061 UA 2011-09-30 04:02:00 66.410 -4.09 -5.80% 69.21 70.41 66.38 1089147 ORCL 2011-09-30 04:00:00 28.740 -0.91 -3.07% 29.25 29.74 28.74 42188036 BANF 2011-09-30 04:00:00 33.160 +0.63 +1.94% 32.08 33.75 31.26 28020 Can anyone help? Thanks! best regards, Xian