Getting this error for the following code…
ERROR:root:Exception in dhanhq>>intraday_history_minute_charts: expiry_code value must be [‘0’,‘1’,‘2’,‘3’]
{‘status’: ‘failure’, ‘remarks’: “expiry_code value must be [‘0’,‘1’,‘2’,‘3’]”, ‘data’: ‘’}
security_id = '1333'
exchange_segment = 'NSE_EQ'
instrument_type = 'EQUITY'
expiry_code = '0'
from_date = '2024-01-23'
to_date = '2025-01-23'
dhan = dhanhq(client_id, access_token)
response = dhan.historical_daily_data(security_id,exchange_segment,instrument_type,expiry_code,from_date,to_date)
print(response)