How markets and orders work Lesson 8 of 10
Trading · Orders and execution
Time in force: day, GTC, IOC, FOK and other order durations
What day, good-til-canceled, IOC, FOK, all-or-none, on-open and on-close instructions do, how extended-hours eligibility works, and the traps in each.
On this page
Every order carries two kinds of instruction. The order type (market, limit, stop and so on) says what price is acceptable. The time in force says how long the order stays live and when it is allowed to trade. A good limit price with the wrong time in force can expire just before the market reaches it, or fill weeks later after your reasons for placing it are long gone.
Most brokerage apps default to a day order and offer good-'til-canceled as the alternative. Behind those two sit several more specialized instructions: immediate-or- cancel, fill-or-kill, all-or-none, on-open and on-close orders, and the flag that lets an order trade in pre-market and after-hours sessions. This page explains each one, with worked examples, and the traps that catch people most often. Hours and rules are for US stock markets as of October 2026.
Day orders
A day order is live for the trading day on which it's entered and is canceled automatically if it hasn't filled by the close of the regular session, 4:00 p.m. Eastern Time (1:00 p.m. on early-close days such as Friday, November 27 and Thursday, December 24, 2026). An order entered after the close, or on a weekend, is usually treated as a day order for the next trading day.
Day orders are the safe default for most people because they can't linger. If the market doesn't reach your limit today, you get to decide again tomorrow with fresh information. Their weakness is the same: if you really do want to buy at $40, you have to re-enter the order every morning.
Whether a day order also covers the pre-market and after-hours sessions depends on the broker. Some offer a separate "day + extended hours" setting; others require you to flag each order.
Good-'til-canceled (GTC) orders
A GTC order stays open across trading days until it fills or you cancel it. Brokers cap how long that can be. Expiry periods differ by firm, commonly somewhere between 60 and 180 days, so "until canceled" really means "until canceled or the broker's limit." Some brokers also offer good-'til-date (GTD), which expires on a date you choose.
GTC traps
- Stale intentions. A GTC limit placed in calm times may fill during a sell-off driven by bad news about the company, precisely when you'd want to reconsider.
- Gaps fill GTC limits at better prices, and that's not always good. A buy limit at $40 will fill at $36 if the stock opens there after an earnings miss.
- Corporate actions. When a stock splits or pays a dividend, brokers may adjust or cancel open orders. A buy limit at $40 on a stock that splits 2-for-1 is not automatically sensible at $40. Check how your broker handles it.
- Forgotten orders. Review open orders regularly. Many people discover a GTC order only when it fills.
Immediate-or-cancel, fill-or-kill and all-or-none
These three qualifiers control how much of the order must fill and how quickly. They're most useful for larger orders or thinly traded stocks.
| Instruction | Must fill now? | Must fill the whole quantity? | What happens to the rest |
|---|---|---|---|
| Immediate-or-cancel | Yes | No | Canceled at once |
| Fill-or-kill | Yes | Yes | Whole order canceled if not all |
| All-or-none | No | Yes | Waits, for its time in force |
An all-or-none order avoids the cost and nuisance of partial fills, but it has lower priority in practice: smaller orders can trade at your price while yours waits for a single counterparty big enough. Some brokers don't accept AON on small orders at all.
On-open and on-close orders
The regular session opens and closes with an auction in which buy and sell interest is matched at a single price. The closing auction sets the official closing price.
- Market-on-open / limit-on-open (often labeled OPG) participate only in the opening auction. If a limit-on-open doesn't fill in the auction, it is canceled.
- Market-on-close (MOC) / limit-on-close (LOC) (sometimes labeled CLS) participate only in the closing auction.
Exchanges set entry and cancellation deadlines for these orders. On the NYSE, MOC and LOC orders must be entered by 3:50 p.m. ET; after that only orders that offset the published imbalance are accepted, and cancellations are restricted. Other exchanges have their own cutoffs, and brokers that offer auction orders commonly set earlier deadlines.
Extended-hours eligibility
US exchanges run trading sessions before and after the regular one. As of October 2026, Nasdaq operates from 4:00 a.m. to 8:00 p.m. ET (pre-market 4:00 to 9:30 a.m., post- market 4:00 to 8:00 p.m.), and NYSE Arca from 4:00 a.m. to 8:00 p.m. Your broker decides which parts of those windows you can use.
To trade in them, an order usually has to be:
- a limit order (most brokers refuse market and stop orders outside regular hours);
- marked as extended-hours eligible, or entered with a time in force that includes those sessions;
- for some brokers, entered within a specific window and canceled at its end.
The SEC's investor bulletin on extended-hours trading lists the risks: less liquidity, wider spreads, more volatile prices, and quotes that may differ from one venue to the next. An order that would fill instantly at 11 a.m. may sit unfilled at 6 p.m., or fill at a very different price.
Choosing a time in force
| You want to… | Time in force that fits |
|---|---|
| Trade today only and decide again tomorrow | Day |
| Wait for a specific price over days or weeks | GTC (or GTD), reviewed regularly |
| Take whatever is available now, no resting order | IOC |
| Do the whole trade at once or not at all | FOK |
| Avoid partial fills and can wait | AON (where offered) |
| Trade at the official open or close | OPG / MOC / LOC |
| React to news before the open or after the close | Limit order marked extended-hours |
How Finabase helps
Finabase doesn't execute orders, so time in force is set in your broker's app. Finabase's quote pages show the regular-session price alongside the extended-hours price when there is one, which helps you judge where an extended-hours limit order sits relative to the market. The market overview shows the day's indexes and movers in one place.
Frequently asked questions
What is the difference between a day order and a GTC order?
A day order expires at the end of the regular trading session if it hasn't filled. A GTC order stays open across days until it fills, you cancel it, or the broker's maximum duration is reached.
How long does a good-'til-canceled order last?
As long as your broker allows. Firms set their own maximums, commonly between about 60 and 180 days, after which the order is canceled automatically. Check your broker's policy and your list of open orders.
What does IOC mean in trading?
Immediate-or-cancel: fill as much of the order as possible right away, at your limit or better, and cancel whatever can't fill immediately. It never rests in the market.
Can I use a market order in pre-market trading?
Usually not. Most brokers accept only limit orders in pre-market and after-hours sessions, because liquidity is thin and spreads are wide.
Summary
Time in force decides how long an order lives and when it can trade. Day orders expire at the close; GTC orders persist up to a broker limit and need regular review; IOC, FOK and AON govern how much must fill and how fast; on-open and on-close orders target the auctions; and extended-hours trading normally requires a limit order flagged for those sessions. Matching the instruction to your plan prevents both missed fills and fills you no longer want.
Check your understanding
4 questions on this lesson. Each answer comes with the reason, and nothing is scored.
On Monday you place a buy limit at $41.50. The stock’s lows are $42.10 on Monday, $41.20 on Tuesday and $39.80 on Wednesday. What happens to a day order and to a GTC order?
- Both fill on Tuesday
- The day order expires unfilled on Monday; the GTC order fills on Tuesday
- The day order expires on Monday; the GTC order fills on Wednesday at $39.80
Show the answer
B. The day order expires unfilled on Monday; the GTC order fills on Tuesday Monday’s low never reached $41.50, so the day order is cancelled at 4:00 p.m. The GTC order is still live on Tuesday, when the stock trades down through $41.50, so it fills then and does not wait for Wednesday.
You send a buy order for 1,000 shares with a $20.00 limit. Only 800 shares are offered at $20.00 or less. What does an immediate-or-cancel order do?
- Buys 800 shares and leaves 200 resting as a bid
- Fills nothing and cancels the whole order
- Buys 800 shares and cancels the other 200
Show the answer
C. Buys 800 shares and cancels the other 200 IOC takes what is available now and cancels the rest; it never rests in the market. Cancelling everything is what fill-or-kill would do, because the full 1,000 shares are not there.
A GTC buy limit at $40 has been open for weeks. After an earnings miss the stock opens at $36. What happens?
- The order is cancelled because the price jumped past the limit
- The order fills at $40, the limit price
- The order fills near $36, on the day you might most want to reconsider
Show the answer
C. The order fills near $36, on the day you might most want to reconsider A buy limit fills at its price or better, so a gap below it fills at about the open. The price is better than planned, but the order was placed in calmer times and bought into bad news.
At 3:55 p.m. ET you enter a market-on-close order for an NYSE-listed stock. What should you expect?
- It may be rejected, because the NYSE cutoff for on-close orders is 3:50 p.m.
- It fills at the official closing price, like any on-close order
- It becomes a day order for tomorrow
Show the answer
A. It may be rejected, because the NYSE cutoff for on-close orders is 3:50 p.m. On the NYSE, MOC and LOC orders must be entered by 3:50 p.m. ET; after that only orders that offset the published imbalance are accepted. Brokers often set even earlier deadlines.
Exercise
One task to do in Finabase. Nothing is graded or saved.
Sign in to paper trading and use Place an order to enter two Buy orders for 1 share of the same stock, both with Order set to Limit and a Limit price about 5% below the current price. Set Expires to Day on one and to Good till cancelled on the other. Check Open orders now, and again the next trading morning. Which order is still waiting?
Open paper tradingWhat you should find
Unless the stock fell to your limit, the Day order is gone after the close and only the Good till cancelled order remains under Open orders. It will keep waiting, and can fill days later when your reasons have changed, so cancel it when you are done. If the price did drop to the limit, both filled the same way: time in force changes how long an order lives, not its price.
