I am trying to run this code, it was working till last Friday, but since today morning I am getting the below error. ========== Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden)) Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden)) Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden)) Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden)) ================
import timer from kiteconnect import KiteConnect import time from kiteconnect import KiteTicker import kiteSettings import datetime
count=0 while True: count+=1 if(count%2==0): if kws.is_connected(): kws.set_mode(kws.MODE_FULL,tokens) else: if kws.is_connected(): kws.set_mode(kws.MODE_FULL,tokens) time.sleep(0.350)