It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Need multi threaded Python program
I need a simple multi threded Python program where one thread keep collecting ticks using websocket and other tread can place/retrieve order details.
No specific logic to be implemented for ticks or order thread.
Websocket thread shall keep printing ticks and order thread keeps displaying orders on console.
I will pay suitably
Next phase will be web-app using FLASK.
have look to this thread
I could implement multi threaded both way where WebConnect running on main thread OR as thread pointed out by you.
In both cases I am getting ticks but for each i got following error.
Connection error: 1006 - connection was closed uncleanly (None)
Connection closed: 1006 - connection was closed uncleanly (None)
Also I have put sleep in the on_tick function as i want quotes only 1 tick in 2 minutes.
Is this right or i need a different?
Do we have some sample code to control webconnect , i can stop start at certain conidtion. i see most example are plain where once connection started it just keep running.
I have implemented it exactly the way you want. Call me at 7991398146 and we can take it from there.
Connection error --> Solved, I had blocking instruction once I received its all
Thanks all who responded to this thread. I am good now, if need be will reach out.
This discussion has been closed.