HeartBeats Failed
-
@rajanprabu my websocket worked just fine today no failures. I was seeing tick data till 15.30.
But I forgot to log the heartbeat message to see if there are any failures.
PS: I am not using threaded ticker -
-
Hi @rajanprabu , Hope your issue is resolved. If not, please share your contact details on api@angelbroking.com
-
I have tested without running them on threads separate threads. It went well today.
all my troubles appear when I use
ss.connect(threaded=True)
I also think this is the limitation on in unix based systems. I have modified the websocket.py to have reactor.run(installSignalHandlers=False) even one doesnt use the threaded=True.
In case if this helps anyone.
-
@rajanprabu hi i want data like this can you give me code?
-
Which code ?
-
@rajanprabu

-
@rajanprabu @admin
I am getting the heartbeat failed message.
I am wondering how do you re-establish the connection?
Also even after the program has ended the heartbeat failed message keeps popping up. -
Hi @PandaTrade we will soon our web socket code we will keep you updated on this.
-
@PandaTrade said in HeartBeats Failed:
Also even after the program has ended the heartbeat failed message keeps popping up.
Thats mainly because Heartbeart connection is running in separate thread. I have a parallel script running to check if there is any HB failure message. Once it find it will stop and restart the script. Of course this can be a issue if you use indicators using past data.
-
hi @admin
have you fixed your Tickdata web socket code?
To me it looks like working. Just want to confirm what are the fixes that you have done? -
They released a new SDK.. But yet to try it.. will try in the evening with MCX data.
-
@rajanprabu btw how do you update your sdk that you had downloaded already..
Could you point me to it. -
@PandaTrade pip install websocket-client
i guess this should do it -
HI @PandaTrade uninstall and install again.
-
pip install smartapi-python --upgrade
should in general upgrade to latest version even if you have it installed already..
-
HeartBeats Failed
HeartBeats Failed@admin i am still getting such messages.
Isn't the program supposed to work infinetely?
For me it got ended in 5 mins. -
-
@rajanprabu yes
-
Thats sad :(. Thanks for testing..