What Is an Order Expiration Setting on a Limit Order?
A limit order placed and left alone doesn’t just wait forever by default — how long it survives on the order book depends on a setting most traders only think about after something unexpected happens.
The short answer
An order expiration setting, often labeled as a time-in-force instruction, controls how long an unfilled limit order stays active before an exchange automatically cancels it. Options generally range from an order that expires at the end of the current trading session to one that stays open indefinitely until it’s either filled or canceled by hand. The setting doesn’t touch the price or quantity specified in the order — it only defines the window during which the exchange keeps trying to match it against incoming trades.
How a limit order behaves on the book
A limit order specifies the exact price at which someone is willing to buy or sell, and it sits on the exchange’s order book until a matching order on the other side comes along. Unlike a market order, which executes immediately at whatever price is available, a limit order can remain unfilled for seconds, days, or longer if the market never reaches the specified price. That open-ended nature is exactly why an expiration setting matters — without one, an old order could sit on the book long after the trader who placed it has forgotten about it.
Common expiration options
- Good-till-canceled (GTC). The order stays active indefinitely, or until the exchange’s own maximum time limit is reached, and is only removed when filled or manually canceled.
- Day order. The order expires automatically at the end of the current trading session if it hasn’t been filled, requiring it to be re-entered the next day.
- Immediate-or-cancel (IOC). Any portion of the order that can be filled immediately executes, and whatever remains unfilled is canceled right away rather than staying on the book.
- Fill-or-kill (FOK). The entire order must be filled immediately in full or it is canceled outright, with no partial execution allowed.
Why the setting matters
The right expiration setting depends heavily on how actively an order is being managed. A trader placing orders through an automated system, often connected through an API key with limited permissions, might use short-lived settings like IOC to avoid leaving resting orders exposed to sudden price moves. Someone manually watching trading volume on an exchange before placing a longer-term order might prefer GTC, since a market with steady activity is more likely to eventually reach the specified price.
What can go wrong with a forgotten order
An old GTC order left active during a period of unusually low trading volume can execute at a price that no longer reflects current market conditions, especially if volatility picks up suddenly. Trading halts add another wrinkle: if a circuit breaker pauses trading on a platform, resting orders typically remain queued and can execute the moment trading resumes, sometimes at a price far from where the market reopens. Reviewing open orders periodically, rather than assuming they’ve expired or become irrelevant, is the main way to avoid an unwelcome surprise.
The takeaway
An expiration setting is a small detail with outsized consequences, since it determines whether a limit order quietly disappears at the end of a session or lingers on the book for weeks. Understanding the difference between GTC, day orders, and the shorter-lived IOC and FOK options makes it easier to match an order’s lifespan to how closely it’s actually being watched.