jerokpradeep / pya3

Other
45 stars 28 forks source link

NFO Data not working #76

Open PalashJyotiBorah opened 1 year ago

PalashJyotiBorah commented 1 year ago

print(alice.get_instrument_for_fno(exch="NFO",symbol='BANKNIFTY', expiry_date='2023-02-09', is_fut=False,strike=40000, is_CE=True))

This is the error received: {'stat': 'Not_ok', 'emsg': 'No Data'}

Rest everything is working. The issue is that the function get_instrument_for_fno is unable to fetch the instrument of BANKNIFTY for the expiry of 2023-02-09..

Please help me.

PalashJyotiBorah commented 1 year ago

It seems the data for the year 2023 is not updating. The above code is working is I change the expiry date some day in 2022.. Please help me in this issue

youngking1686 commented 1 year ago

Work around is delete the NFO.csv master contract downloaded in your project folder. You can modify your program to delete it every time you log off so a fresh contract is generated in next login.

AbhishekpYoungsoft commented 1 year ago

Facing the same issue, while equity data is working. but NFO is not working. Please resolve. note: Its working for monthly expiry contracts, but not for current or weekly expiry contracts.

monasingh05 commented 1 year ago

NFO data is still not working , I tried with 2022 dates as well . Please share if you have any workaround