Hi Jürgen,
thanks for your tips. Actually it sounds very obviously that a MOC order can not be part of OCA group if cancelling is not always possible. I wasn't aware about that.
Now I will change my code to using?ibapi.order_condition.TimeCondition.
Also I am wondering, if it it can be done simple setting order attributes as below:
order.Tif = 'GTC'
order.ActiveStartTime =?'20220621 15:20:00'?# Defines the start time of GTC orders., Valid format: YYYYMMDD HH:MM:SS.?
I will play a little bit around and do some paper trading next Tuesday (when NYSE) is open again.
Guess this order specifications types are only doable in NYSE.