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

Daniel Cegiełka daniel.cegielka at gmail.com
Thu Sep 18 10:55:30 CEST 2014


2014-09-18 9:49 GMT+02:00 Samo Pahor <samo.pahor at gmail.com>:
> 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?)

> rm(BAL)
> getSymbols("BAL")
[1] "BAL"
> tail(BAL)
           BAL.Open BAL.High BAL.Low BAL.Close BAL.Volume BAL.Adjusted
2014-09-09    43.50    44.23   43.50     44.03      12600        44.03
2014-09-10    43.95    45.24   43.95     45.07      30500        45.07
2014-09-11    44.67    45.84   44.67     45.69      43000        45.69
2014-09-12    45.45    46.04   45.40     45.61      29600        45.61
2014-09-15    44.76    44.76   44.00     44.17      13500        44.17
2014-09-16    43.99    44.13   43.83     44.04       8900        44.04

looks ok.

Best regards,
Daniel



More information about the R-SIG-Finance mailing list