开云体育

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

Cancel on Client Disconnect/Logout


 

Hi,
Is there any option in the TWS application to automatically cancel all open orders (an event triggered automatically by the TWS application) when the client disconnects? Or is there a specific field we can set when sending orders via the TWS API to achieve this?
Thank you.


 

开云体育

Set `order.GoodTillDate`, configure it till end of day minus 1 second.

On 29 Jan 2025, at 21:39, tarun.joshi via groups.io <tarun.joshi@...> wrote:

Hi,
Is there any option in the TWS application to automatically cancel all open orders (an event triggered automatically by the TWS application) when the client disconnects? Or is there a specific field we can set when sending orders via the TWS API to achieve this?
Thank you.


 

Thanks for the clarification.