Velappan Periasamy
2010-Jun-05 18:16 UTC
[R] How to get the closing price from the the GOOGLE FINANCE site for NSEINDIA stocks
Sir, How to get the closing price from this link http://www.google.com/finance/historical?q=NSE:RCOM I installed quantmod getSymbols('NSE:RCOM',src='google') gives me this error********************** Error in download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", : cannot open URL 'http://finance.google.com/finance/historical?q=NSE:RCOM&startdate=Jan+01,+2007&enddate=Jun+05,+2010&output=csv' Calls: getSymbols -> do.call -> getSymbols.google -> download.file In addition: Warning message: In download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", : cannot open: HTTP status was '404 Not Found' Could someone please give me the correct statement. thanks
ivan popivanov
2010-Jun-06 00:27 UTC
[R] How to get the closing price from the the GOOGLE FINANCE site for NSEINDIA stocks
Try getSymbols("RCOM.NS", from="1900-01-01") instead. It looks like google has removed the ability to download csv (not much business providing it;)). In any case, Yahoo historical prices go way back than googles. For instance, getSymbols("^DJI", from="1900-01-01") ; head(get("DJI")) shows the first date as 1928! Hope this helps, Ivan> Date: Sat, 5 Jun 2010 23:46:37 +0530 > From: veepsirtt@gmail.com > To: r-help@r-project.org > Subject: [R] How to get the closing price from the the GOOGLE FINANCE site for NSEINDIA stocks > > Sir, > How to get the closing price from this link > http://www.google.com/finance/historical?q=NSE:RCOM > > I installed quantmod > getSymbols('NSE:RCOM',src='google') > > gives me this error********************** > > Error in download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", : > cannot open URL > 'http://finance.google.com/finance/historical?q=NSE:RCOM&startdate=Jan+01,+2007&enddate=Jun+05,+2010&output=csv' > Calls: getSymbols -> do.call -> getSymbols.google -> download.file > In addition: Warning message: > In download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", : > cannot open: HTTP status was '404 Not Found' > > Could someone please give me the correct statement. > thanks > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code._________________________________________________________________ [[alternative HTML version deleted]]