It looks like you're new here. If you want to get involved, click one of these buttons!
Node JS client
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Python Websocket Threading - Main loop terminated issue
To all Python Gurus
I am simply trying to take the def on_ticks(ws, ticks): output and push it to a SQL server. I would highly highly appreciate if you could please help me with resolving a silly error.
I have included the screenshots of my code as well as the error. I have gone through some of the previosuly shared documentation however I know I am doing something very silly.
Your kind support will be of great help.
Thank you again.
You need to use Queue for heavy operation. Use solution 1, as mentioned in
- Can you take a look at the issue and tell me based on your experience if queing will work?? I have tried to depict the details in the screenshot below.
Also - just curious, shoudlnt the thread run on a new thread & not the main thread....I know I am doing something silly.
Your fedback is super helpful.