Hi Team,
I need your expert help here.
I use python 3.10
AWS - Windows EC2
DhanHQ v1 API
I use below code to pull index data:
IndexResponse = dhan.intraday_minute_data(
security_id=IndexId,
exchange_segment=“IDX_I”,
instrument_type=“INDEX”
)
Below error is occured now, as this was worked proper in same AWS environment a week back.
Also, the same code works fine in my local windows system now too.
ERROR:root:Exception in dhanhq>>intraday_daily_minute_charts: HTTPSConnectionPool(host=‘api.dhan.co’, port=443): Max retries exceeded with url: /charts/intraday (Caused by SSLError(SSLCertVerificationError(1, “[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for ‘api.dhan.co’. (_ssl.c:997)”)))
Your timely help is appreciated!