Getting error in fetching derivative data for SEP 2024 and beyond

model.Symbol = “NSE:NIFTY24SEP25000CE”; // NOT OK

model.Resolution = “1D”;

model.DateFormat = “1”;

model.RangeFrom = “2024-09-05”;

model.RangeTo = “2024-09-15”;

model.ContFlag = 1;

The above Java code is unable to fetch data, but if I change it to OCT Series with date range in OCT, it works. Interesting Nifty data is getting fetched. The same is happening for Banknifty as well.

Can somebody please help?

Hey @117518035412571466238 ,

We only provide the data for active contracts for **derivativies and not for expired contracts . **

Thanks for the answer, I was guessing the same.

I am working on a concept, which needs data for backtesting. Any idea, Fyer could help me in getting the data. Even daily data would be fine.

I would appreciate a quick response.