krishnavelu / alice_blue

Official Python library for Alice Blue API trading
GNU General Public License v3.0
133 stars 82 forks source link

Getting error alice.get_instrument_for_fno("NFO", "BANKNIFTY", #486

Closed venkalp closed 1 year ago

venkalp commented 1 year ago

Hi, I am getting error while fetching for Banknifty in below ;

alice.get_instrument_for_fno("NFO", "BANKNIFTY", is_fut=False, expiry_date=datetime.date(2022, 11, 17), strike=42000, is_CE=True),

raise Exception("Provide valid data") Exception: Provide valid data

but it works for alice.get_instrument_for_fno("NFO", "NIFTY", is_fut=False, expiry_date=datetime.date(2022, 11, 17), strike=18200, is_CE=True),

Please let me know what is passing wrong here .....

venkalp commented 1 year ago

Please ignore, I was using Aliceblue_V2.