Time in force (TIF) is an instruction attached to an order that specifies how long the order stays active before it is executed, cancelled or allowed to expire. It is a standard field on every order ticket, alongside the side, quantity, price and order type, and it determines whether an unfilled order lasts for an instant, for one session or for weeks.
Every order has a time in force, whether chosen by the trader or applied by default. On most platforms the default is a day order. The settings on offer depend on the broker, the trading venue and the product, and some apply only to a limit order or another priced order, because a market order normally executes at once.
Common time-in-force instructions
- Day. A day order is active until the end of the regular session on the day it is entered and is cancelled if it has not been filled.
- Good-till-cancelled. A good-till-cancelled order keeps working across sessions until it is filled or the trader cancels it, subject to any maximum life set by the broker.
- Good-till-date. A good-till-date order works until a stated date or time. Its mirror image, the good-after-time order, becomes active only at a stated time.
- Immediate-or-cancel. An immediate-or-cancel order executes whatever quantity is available at once and cancels the remainder.
- Fill-or-kill. A fill-or-kill order must be filled completely and immediately, or it is cancelled in full.
- At the open and at the close. Orders such as the market-on-open order and the market-on-close order take part only in the opening or closing auction.
The all-or-none condition is often listed with these, although strictly it restricts quantity, not duration: the order must be filled in full but may wait for that to become possible.
Time in force and trading sessions
Duration is defined relative to the venue's sessions. In US equities, a standard day or good-till-cancelled order is eligible to trade only during regular trading hours, 9:30 a.m. to 4:00 p.m. Eastern time. To trade before the open or after the close, the order must carry an instruction for extended-hours trading, which brokers present either as a separate flag or as a combined setting such as "day plus extended hours".
Futures markets trade for most of the day and night, so a day order there lasts for the exchange's trading session, which usually begins on the evening before the calendar date it is named for. In foreign exchange and crypto markets, which do not close each day, brokers define their own cut-off times.
How brokers and exchanges handle duration
Immediate-or-cancel and fill-or-kill instructions are enforced by the exchange's matching engine, since they depend on what is available at the instant the order arrives. Longer-lived orders are often managed by the broker. Several US stock exchanges do not hold orders overnight, so brokers store good-till-cancelled orders on their own systems and re-enter them each morning. One consequence is that such an order may rejoin the queue at its price each day instead of keeping its place.
Brokers commonly cap the life of a good-till-cancelled order, often at between one and six months, and may cancel or adjust it after a corporate action. On an ex-dividend date, open buy limit orders and sell stop orders are conventionally reduced by the amount of the dividend unless they are marked "do not reduce".
In electronic trading, time in force is a standard message field. The FIX protocol, the messaging standard widely used between brokers, asset managers and venues, carries it in tag 59, with coded values for day, good-till-cancelled, at the opening, immediate-or-cancel, fill-or-kill, good-till-date and at the close.
Risks and trade-offs
The choice trades certainty of execution against control over when and how an order can trade. Short-lived instructions limit exposure. An immediate-or-cancel order cannot be left resting in the book to be hit after news arrives, which is why execution algorithms that sweep several venues rely on it. The cost is a higher chance of a partial fill or of no fill at all, and a fill-or-kill order in a thin market may never execute.
Long-lived orders are convenient for buying at a target price or for leaving a protective stop order in place, but they can go stale. A forgotten limit order may execute weeks later, after the reason for it has passed, and a resting stop can be triggered by an overnight gap and filled far from its stop price. An order filled in pieces over several days may also attract more than one commission. For these reasons, brokers and regulators advise investors to review open orders periodically.