@saurabh3679 kws.connect(threaded=True) runs ticker in a separate thread That means you ll have to block the main thread in some way.
If you need to process dataframe in a separate thread, you dont need to run ticker in threaded mode. Create a new thread inside on_ticks callback and process the ticks.
Thanks Zartimus. That solves the dilemma. I am storing the ticks in a dataframe, creating a new thread inside on_ticks and passing dataframe to this thread.
kws.connect(threaded=True) runs ticker in a separate thread
That means you ll have to block the main thread in some way.
If you need to process dataframe in a separate thread, you dont need to run ticker in threaded mode. Create a new thread inside on_ticks callback and process the ticks.