Idirect-Tech / Breeze-Python-SDK

The official Python client library for the ICICI Securities trading APIs
MIT License
53 stars 28 forks source link

Fetch Options Quotes returns no data found if expiry date is holiday #22

Open vineetvermait opened 1 year ago

vineetvermait commented 1 year ago

Using Expiry date: 30/03/2023(Holiday)


data = breeze.get_quotes(
    "NIFTY",
    "NFO",
    expiry_date=next_expiry(datetime(2023, 3, 29)).strftime(TIMEFORMAT),
    product_type="options")

print(data)

response: {'Success': None, 'Status': 500, 'Error': 'No Data Found'}

Using Expiry date: 06/04/2023(Not Holiday)


data = breeze.get_quotes(
    "NIFTY",
    "NFO",
    expiry_date=next_expiry(datetime(2023, 3, 29)).strftime(TIMEFORMAT),
    product_type="options")

print(data)

data is received.

Please check if bug in code