[R-SIG-Finance] Does the current packages support getting the sector->industry(for example Money Center Bks (^YHOh750)) data from yahoo?

Joshua Ulrich josh.m.ulrich at gmail.com
Fri Jun 13 12:39:37 CEST 2014


On Fri, Jun 13, 2014 at 2:40 AM, Alu <2427580722 at qq.com> wrote:
> Dears, Does the current packages support getting the sector->industry(for example Money Center Bks (^YHOh750)) data from yahoo? I have tried "getSymbols("^YHOh750", src="yahoo", from="2014-01-01", to="2014-01-20")" , it seems that it doesn't work, any ideas?
>         [[alternative HTML version deleted]]
>
"Doesn't work" is not helpful when describing a problem.  In this
case, the error tells you exactly why it doesn't work.

> getSymbols("^YHOh750", src="yahoo", from="2014-01-01", to="2014-01-20")
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  cannot open URL
'http://chart.yahoo.com/table.csv?s=^YHOh750&a=0&b=01&c=2014&d=0&e=20&f=2014&g=d&q=q&y=0&z=^YHOh750&x=.csv'
In addition: Warning message:
In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  cannot open: HTTP status was '404 Not Found'

The historical data do not exist on Yahoo, so you shouldn't expect
getSymbols to be able to somehow "work".

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com



More information about the R-SIG-Finance mailing list