Dear Friends
Today when I am using the following code I am getting wrong result.
instrument_fo = alice.get_instrument_for_fno(
exch=‘NFO’,
symbol=‘NIFTY’,
expiry_date=‘2024-08-22’,
is_fut=False,
strike=25000,
is_CE=True
)
instrument_fo
Result:
{‘stat’: ‘Not_ok’, ‘emsg’: ‘No Data’}
However if I am using 29 expiry the code is working fine, and I got the result
Instrument(exchange=‘NFO’, token=74698, symbol=‘NIFTY’, name=‘NIFTY29AUG24C25000’, expiry=‘2024-08-29’, lot_size=25)
Please suggest the reason of wring result.