Limit Order Timeouts
A time limit can be set on any limit order entry with the PLACE or FLATPLACE commands. If the order has not been filled within the time limit, it will be canceled by CrossTrade.
By setting the cancel_after flag in a limit order alert, a timeout value will be imposed on the order. Valid time values are between 1 and 60 minutes, e.g., cancel_after=15;will attempt to cancel the order after 15 minutes.
Timeouts are not exact; there may be a few seconds of delay after the timeout period before the order is canceled.
The Automated Trading Interface (ATI) must be enabled for this feature to work correctly.
Example Payloads
PLACE command with cancel_after timeout enabled.
key=your-secret-key;
command=place;
account=sim101;
instrument=ES 09-26;
action=buy;
qty=1;
order_type=limit;
tif=day;
limit_price=-10 ticks;
cancel_after=5;
cancel_after works with destination=tradovate; too (1 to 180 minutes, limit orders only). It is implemented as a Tradovate-native scheduled cancel submitted right after the entry is accepted, so the timeout fires on Tradovate's servers even if your machine or CrossTrade restarts in the meantime. ATI is not involved on this path. Remember that limit_price must be an absolute price on Tradovate.