One more problem in addition to what is described earlier.
Please download the F&O Bhavcopy from NSE or bhavcopy from MCX or NCDEX
They are giving name of the stock in one column and the expiry date of contract in another column.
Now how to assign symbols in the following manner
For contracts expiring in December 2016, say NIFTY, as NIFTY-1
For contracts expiring in January 2017, say NIFTY, as NIFTY-2
For contracts expiring in February 2017, say NIFTY, as NIFTY-3 etc.?