I don't think google provides that data in a nice format (i.e. CSV) If you go to http://www.google.com/finance/historical?q=NYSEARCA:SPY you can see that on the right side of the page there is a section called "Export" with a link called "Download to spreadsheet"
However, if you go the analogous page for COS, there is no such link. http://www.google.com/finance/historical?q=TSE:COS On Wed, Jul 11, 2012 at 1:57 PM, Paul Gilbert <pgilbert...@gmail.com> wrote: > My bad. Indeed the examples should have been: > >> getSymbols("BMO.TO", src="yahoo") >> getSymbols("COS.TO", src="yahoo") >> getSymbols("TSE:COS", src="google") > > They lost something in translation from my code. The problem is not resolved > by this correction, however the yahoo retrieval is fixed by the > getSymbols.yahoo URL change suggested. > > The google retrieval still causes problems: > >> getSymbols("TSE:COS", src="google") > Error in download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", > : > cannot open URL > 'http://finance.google.com/finance/historical?q=TSE:COS&startdate=Jan+01,+2007&enddate=Jul+11,+2012&output=csv' > In addition: Warning message: > In download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", : > > cannot open: HTTP status was '404 Not Found' >> > > Any further suggestions appreciated. > > Thanks, > Paul > > _______________________________________________ R-SIG-Finance@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.