Re: Submit orders to TWS via API
Hi Artyom
Thanks for your reply...? ?
Suggestion (1) resolved the issue
thanks all..? for your inputs
regards ed
toggle quoted message
Show quoted text
On Wed, May 5, 2021 at 08:08 PM, Ed Bell wrote:
# Disconnect from TWS ? ? ? ? ? ? ? ? ? ? ? ? ? tws_conn.disconnect()
two cents from my side, consider these steps:
1. bringing TWS connect disconnect outside of infinite loop
2. implement filesystem watchdog observer, for example:??
3. implement openOrder / orderStatus callbacks:??
as of now, your code disconnects from TWS immediately upon placing order, without waiting callbacks from TWS.
Artyom
|