[R-SIG-Finance] [R-sig-finance] quantmod error downloading .AORD data

Wind2 windspeedo99 at gmail.com
Wed Jun 10 16:12:08 CEST 2009


It seems that google does not supply the csv download link for AORD.
You can check this by yourself.
There is a Download to Spreadsheet link in
http://www.google.com/finance/historical?q=NASDAQ:MSFT
But no such link in
http://www.google.com/finance/historical?q=INDEXASX:.AORD

If you do need AORD data, try this:
getSymbols("^AORD") 




Sean Carmody wrote:
> 
> I have been having trouble getting quantmod to return data for certain
> series. An examle is for ".AORD" (the Australian All Ordinaries index).
> 
> The following call:
> 
> getSymbols(".AORD", src="google")
> 
> results in this error message:
> 
> Error in download.file(paste(google.URL, "q=", Symbols.name,
> "&startdate=",
> :
>   cannot open URL '
> http://finance.google.com/finance/historical?q=.AORD&startdate=Jan+01,+2007&enddate=Jun+10,+2009&output=csv
> '
> In addition: Warning message:
> In download.file(paste(google.URL, "q=", Symbols.name, "&startdate=",  :
>   cannot open: HTTP status was '404 Not Found'
> 
> The problem seems to be with the "output=csv" part of the url, since
> pasting
> http://finance.google.com/finance/historical?q=.AORD&startdate=Jan+01,+2007&enddate=Jun+10,+2009into
> a browser works fine.
> 
> Of course, the same problem doesn't always arise, as with the example from
> the documentation:
> 
> getSymbols("MSFT", src="google")
> 
> Any thoughts would be appreciated.
> 
> Regards,
> Sean.
> 
> -- 
> Sean Carmody
> 
> The Stubborn Mule
> http://www.stubbornmule.net
> http://twitter.com/seancarmody
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
> 
> 

-- 
View this message in context: http://www.nabble.com/quantmod-error-downloading-.AORD-data-tp23957208p23963209.html
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list