开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

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


On Thu, May 6, 2021 at 10:03 AM Artyom T. <artyom.tyazhelov@...> wrote:
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

Join [email protected] to automatically receive all group messages.