Are you using TWS, or using the API to submit an order? It is possible to give a start time to an order, meaning that it becomes active after the indicated time.
Good After Time (GAT) Orders An order that uses the good after time/date field is held in the IB system and submitted to the market on the date and time you specify.* You must display the Good After Time field to use this time in force. https://www.interactivebrokers.com/en/trading/orders/gat.php Edit: On second thought, maybe not for "after x minutes", as you specified.
I would be fine with triggering after x minutes. Best if triggering x minutes after parent order filled. No I don't use API. Open to all solutions though .
So your initial question did not relate to any kind of order, but you want to put a time constraint on a child order after its parent got filled? I don't think that the available order type for a parent-child order allows for a time period during which the child is not active. Possibly you would have to submit the parent order first, monitor until it gets filled, and then submit the child order x minutes later.
It's possible. It would be a time-based order and not price-based, but you'll likely need to program it yourself.
Code: from threading import Timer delayed= Timer(5, lambda: print('execute'), args=None, kwargs=None) delayed.start() in python api can use threading.Timer