I use the excellent quantmod to load stock prices from yahoo. This has never caused me any problems. However ever since yesterday I can not download any more stock quotes.
I also tried the get.hist.quote function from the tseries package but this gives me about the same error.
Below is the code that I tried:
library('quantmod','PerformanceAnalytics')
tickers = '^GSPC'
data <- new.env()
getSymbols(tickers, src = 'yahoo', from = '1970-01-01', env = data, auto.assign = T)
This gave the following error:
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : cannot open URL 'http://chart.yahoo.com/table.csv?s=^GSPC&a=0&b=01&c=1970&d=0&e=02&f=2014&g=d&q=q&y=0&z=^GSPC&x=.csv' In addition: Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : InternetOpenUrl failed: 'A connection with the server could not be established'
As far as I can see the link to yahoo finance doesn't work anymore (I also tried copy pasting the link to chrome but there I can't open it either).
Does anyone know what happend? Did yahoo finance change or am I missing an update from quantmod or something?
Thanks in advance for any help!