[R-SIG-Finance] quantmod and yahoo historical data download error - did yahoo changed the url?

Samo Pahor samo.pahor at gmail.com
Thu Sep 18 09:49:21 CEST 2014


Hi,

I am facing issues with downloading historical data from yahoo using
quantmod this morning:
[1] "BAL"
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,  :
  cannot open URL
'http://ichart.finance.yahoo.com/table.csv?s=BAL&a=8&b=17&c=2014&d=8&e=18&f=2014&g=d&q=q&y=0&z=BAL&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'

To me it looks like yahoo change urls (again?) since if I go to yahoo
webpage http://finance.yahoo.com/q/hp?s=BAL+Historical+Prices and
hover over link "Download to Spreadsheet" I can see this
http://real-chart.finance.yahoo.com/table.csv?s=BAL&d=8&e=18&f=2014&g=d&a=5&b=25&c=2008&ignore=.csv
 . It looks ichart changed to real-chart and maybe parameters have
also changed.

Best regards,
Samo



More information about the R-SIG-Finance mailing list