Hi
I try to download the last 10 days quotes for NIFTY index data from yahoo
source,
but it gives me errors.

load.packages('quantmod')
endDate =Sys.Date()
startDate = as.Date(endDate-100, order="ymd")
nsei=getSymbols("^NSEI", src = 'yahoo', from = startDate,end=endDate)
 last(nsei,10)
===========================================
I used  Rcurl to get prices for "WIPRO"

library(RCurl)
fii =
getForm("http://nseindia.com/live_market/dynaContent/live_watch/get_quote/getHistoricalData.jsp";,
                symbol="WIPRO",
        fromDate="29-Oct-2012",
        toDate="06-Nov-2012",
        datePeriod="unselected",
        hiddDwnld="true",
        .opts = list(followlocation = TRUE,ssl.verifypeer = FALSE , verbose
= TRUE))
tbl<-read.csv(textConnection(fii),skip=2,header=TRUE)
tbl
But it also fails.
please guide me
thanks
veepsirtt




--
View this message in context: 
http://r.789695.n4.nabble.com/library-RCurl-quamtmod-yahoo-data-source-tp4648587.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to