Fyers API: Nifty last expiry data shows invalid symbol in python

Hi Team,

when I try to get the nifty option using below code

response = fyers_conn.quotes(data=data)

we got the error response like "Please provide a valid symbol" like below

{'message': '', 'code': 200, 'd': [{'n': 'NSE:NIFTY24D2622700CE', 'v': {'n': 'NSE:NIFTY24D2622700CE', 'errmsg': 'Please provide a valid symbol', 'code': -300, 's': 'error'}, 's': 'ok'}, {'n': 'NSE:NIFTY24D2622750CE', 'v': {'n': 'NSE:NIFTY24D2622750CE', 'errmsg': 'Please provide a valid symbol', 'code': -300, 's': 'error'}, 's': 'ok'}], 's': 'ok'}

but when we enter same symbol in fyers web. we getting the data and graph.

Note: the application working in previous week expiry. some of the symbols are NIFTY24D1924650PE, NIFTY24D1924200CE, NIFTY24D0524300CE

2 replies