Am I missing something? One can try with this code after the kws.connect(threaded=True). On my system in 10 secs about 25000 (25k) twenty five thousand while_ticks functions were created. # Infinite
PE")<br />i = i + 1<br />#print("Short PE Cycle Completed")<br />print(datetime.now())<br />except:<br />#logging.info("Excel Loop Or
= ticker["SYMBOL"]<br />#print (tickers)<br />def instrumentLookup(instrument_df,symbol):<br />"""Looks up instrument token for a given
Your code looks correct. on_ticks ticker method should be called properly. But,we feel as it's continous while loop print("i am from main -> after kws.connect(threaded=True)"
My code is as follows. def on_ticks(ws, ticks):<br /># Callback to receive ticks.<br />#print(ticks)<br />insert_tick(ticks)<br />return<br />def on_connect(ws, response)