I did all steps as you mentioned in above post. Also took subscription of Data Api. But still problem persist. There is WebSocket connection error: init() got an unexpected keyword argument ‘on_connect’ and loop continue with Fetching LTP. Excell is not updating with latest LTP and other data.
Hi,
I am also facing the same issue, I have followed all the steps. LTP is not updating. Can you please cover this in the next session I have seen a few people facing this issue.
if not. please send me your zip of the entire folder that you are working on, (use google drive link and share with tradehull_mentorship@tradehull.com)
I have subscribed to Dhan Api paid version.
Updated token and client id in the beginning
Removed all expired contracts from excel
but still same error.
Works like a charm till previous hist data. will check more and update. btw a quick question: should we keep running the websocket command or pause it as it keeps fetching ltp?
This is working now Thanks.
2 doubts:
1- do we have to stop the code and rerun every time we add a new instrument?
2- how to future proof the code, it might need another edit with new dhan api updates ?