It looks like you're new here. If you want to get involved, click one of these buttons!
Error: Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
One point I noticed where you suggested to assign kws.on_ticks = on_ticks in my while loop where I have my trading logic. This, I am not able to understand why? The function name is already assigned in kws instance before starting the while loop correctly. Please advise.
I mentioned at other place also. You code might have an issue and when it terminates what you get is the web socket error, which makes you believe into the fact that there is web socket error
Remember this error simply means that code exited for some issue, that would be in your code. And it also resulted in web socket disconnection uncleanly.
Please check your code. I can tell you this is not web socket related issue.