开云体育

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

Re: difference between Good Till Cancel and autuCancelDate


 

Richard already pointed the relevant time-in-force options out and you can learn more about GTC orders in . Interesting read, since there are a few (not so obvious) events that can cancel your order.

Your question made me curious about the autoCancelDate field you mentioned. I had seen it before but never paid attention to it so I did a little research.

The order object field autoCancelDate, and one called autoCancelParent must have been around for quite a while, but at least since APII 976.1. Documentation is very thin but the reference guide says:

  • - Specifies the date to auto cancel the order.
  • - Cancels the parent order if child order was cancelled.

And the for 10.10 say "Added AutoCancelParent attribute to placeOrder/openOrder". I read that as "the order object field autoCancelParent is now sent to and received from TWS/IBGW".

autoCancelDate is not mentioned in the release notes so I checked the API source code. At least in the Java API, values for autoCancelDate are ignored when order objects are sent to TWS/IBGW via placeOrder. In other words the field can not be used to cause order cancellation at a certain point in the future.

But the field is properly initialized in order objects received from TWS/IBGW via openOrder callbacks. So the field could possibly carry the date/time when an order was cancelled related to autoCancelParent = true. But that is just a guess.

闯ü谤驳别苍

On Mon, Jul 18, 2022 at 11:03 AM, <ajinkya@...> wrote:

Hi All,?

I was going through TWS API order structure. I found that we have GTC orders in which we can specify date and time to cancel the order. Why we have seperate field called autoCancelDate? Isn't it same as GTC.

Thanks
Ajinkya

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