How to automatically cancel an order if it is not filled after a minute?

Viewed 303

I want to automatically cancel orders in IBKR's IB API if they are not filled after a minute. They are parent orders, so I can't just use cancelOrder after sleeping for 60 seconds or the child order will also be cancelled.

1 Answers
Related