HNY. As the question in the subject line implies, I'm getting errors trying to use the tseries package function get.hist.quote()
. Can anyone shed light on my calling it incorrectly, or in a change of its signature/functionality?
I noticed these errors starting at my work yesterday. Today on my home machine, same issue. Same results for various combinations of symbol, start/end dates, and granularity (day vs month).
Here's an example:
> spy = get.hist.quote(instrument= 'SPY',
start = "2000-01-01",
end = "2013-10-31",
quote="AdjClose",
provider = "yahoo",
origin="1970-01-01",
compression = "m",
retclass="zoo")
trying URL 'http://chart.yahoo.com/table.csv?s=SPY&a=0&b=01&c=2000&d=9&e=31&f=2013&g=m&q=q&y=0&z=SPY&x=.csv'
download error, retrying ...
trying URL 'http://chart.yahoo.com/table.csv?s=SPY&a=0&b=01&c=2000&d=9&e=31&f=2013&g=m&q=q&y=0&z=SPY&x=.csv'
download error, retrying ...
trying URL 'http://chart.yahoo.com/table.csv?s=SPY&a=0&b=01&c=2000&d=9&e=31&f=2013&g=m&q=q&y=0&z=SPY&x=.csv'
download error, retrying ...
trying URL 'http://chart.yahoo.com/table.csv?s=SPY&a=0&b=01&c=2000&d=9&e=31&f=2013&g=m&q=q&y=0&z=SPY&x=.csv'
download error, retrying ...
trying URL 'http://chart.yahoo.com/table.csv?s=SPY&a=0&b=01&c=2000&d=9&e=31&f=2013&g=m&q=q&y=0&z=SPY&x=.csv'
Error in get.hist.quote(instrument = "SPY", start = "2000-01-01", end = "2013-10-31", :
cannot open URL 'http://chart.yahoo.com/table.csv?s=SPY&a=0&b=01&c=2000&d=9&e=31&f=2013&g=m&q=q&y=0&z=SPY&x=.csv'
In addition: Warning messages:
1: In download.file(url, destfile, method = method, quiet = quiet) :
InternetOpenUrl failed: 'A connection with the server could not be established'
2: In download.file(url, destfile, method = method, quiet = quiet) :
InternetOpenUrl failed: 'A connection with the server could not be established'
3: In download.file(url, destfile, method = method, quiet = quiet) :
InternetOpenUrl failed: 'A connection with the server could not be established'
4: In download.file(url, destfile, method = method, quiet = quiet) :
InternetOpenUrl failed: 'A connection with the server could not be established'
5: In download.file(url, destfile, method = method, quiet = quiet) :
InternetOpenUrl failed: 'A connection with the server could not be established'