Hello, 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
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.
You can 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.
Thanks all who responded to this thread. I am good now, if need be will reach out.