Unable to get data using get.Symbols

I am using below code to bring NSE Auto data from yahoo finance:

nseauto <- na.omit(getSymbols('^CNXAUTO', from = maxdate, auto.assign = F))[4]

The error it shows is as follows:

Error in `[.xts`(na.omit(getSymbols("^CNXAUTO", from = maxdate, auto.assign = F)),  : 
  subscript out of bounds

What does this mean and how to resolve this?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.