# Callback for successful connection. def on_connect(self, ws): # Subscribe to a list of instrument_tokens (RELIANCE and ACC here). ws.subscribe([738561, 5633])
# Set RELIANCE to tick in `full` mode. ws.set_mode(ws.MODE_FULL, [738561])
def run(self): while True: # Initialise. self.kws.connect() print ' Websocket is called'
Please check this attached code for websocket, correct me if anything wrong.
thx
raju