Why my websocket connect gets disconnected after about 2 hrs with the exception Exception occurred HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7) I am getting disconnecting twice in a day with this error. Any suggestions?
Thanks Srijan. If I write code like this and the timed out exception occurs, will it invalidate the ticker object? or will it continue? thanks in advance
def on_ticks(ws, ticks): global my_ticks my_ticks.extend(ticks)