Getting invalid symbol error for BANKNIFTY

Hello,

I am trying to get 5 minute OHLC data for 24th Jan 2024 for BankNifty. But getting "invalid symbol" error (screenshot below) when running my algo code.

Need your help to understand where I am going wrong.

When I checked in trade.fyers.in, found these symbols to be strange / incorrect:

a) Showing Bank Nifty for 25th Jan, which is a Thursday. Should it not be 24th Jan (Wed)? Is there some NSE holiday on 24th Jan ?

b) The symbols for 25th Jan also seems incorrect as NSE:BANKNIFTY24JAN30500CE, while it should be NSE:BANKNIFTY2412430500CE.

c) Symbol for 31st Jan 2024 is NSE:BANKNIFTY2413130500CE, while is should be NSE:BANKNIFTY24JAN30500CE.

Please help clarify these, so that I can make necessary corrections to my algo code.

Screenshot below showing 24th / 25th Jan symbol:

Screenshot below showing 31st Jan symbol:

Thanks,

Pravin

2 replies