Sub topic 14
Regular versus extended-hours trading
This chapter assumes you know how to read a quote (bid, ask, spread) and can place market and limit orders on an order ticket. It covers what changes when you trade outside the main session, and why those changes make your order choices matter more. The material is educational, not investment advice. The times and rules below describe US stocks, and your broker's details may differ.
The sessions of a trading day
US exchanges run a regular session from 9:30 a.m. to 4:00 p.m. Eastern Time (ET), Monday to Friday, except market holidays. Trading outside that window is called extended-hours trading. It has two parts:
- Pre-market runs before the open, up to 4:00 a.m. to 9:30 a.m. ET depending on the broker.
- After-hours runs after the close, until 8:00 p.m. ET at most.
Some brokers also offer overnight trading, usually through alternative trading systems. Treat it as a separate product with its own rules. Check your broker's help pages for the exact windows, because many brokers open later than 4:00 a.m. or close earlier than 8:00 p.m.
Why extended hours behave differently
Most volume trades during the regular session, when many buyers and sellers post orders at once. Outside it, fewer participants are active. Recall from the order book chapter that liquidity is the amount you can trade near the quoted price. In extended hours that amount drops, and three effects follow.
- Wider spreads. Market makers post fewer and less aggressive quotes, so the bid and ask drift apart.
- Thin depth. Few shares sit at each price level, so a modest order can move through several levels.
- Larger price jumps. A single trade can move the price more than it would at noon.
News also arrives at these times. Many companies report earnings after the close or before the open, so extended-hours prices can swing sharply on a handful of trades.
A worked comparison with one stock, using the 20-share order from earlier chapters:
| Measure | Regular session | After-hours |
|---|---|---|
| Bid / ask | 49.98 / 50.02 | 49.70 / 50.30 |
| Spread | 0.04 | 0.60 |
| Spread as % of midpoint | 0.08% | 1.2% |
| Cost of 20 shares bought at the ask | 1000.40 | 1006.00 |
The after-hours buyer pays 5.60 more for the same shares, and that is before any further slippage. The spread is a cost you pay on entry and again on exit.
Order rules outside the regular session
Brokers restrict what you can send in extended hours, and the common rules are:
- Limit orders only. Market orders are generally rejected or held until the next regular open. Given the wide, unstable quotes, this protects you. A market order into a thin book could fill far from the last price.
- A session flag on the ticket. Many tickets have a checkbox or a time-in-force option such as "Day + extended hours". An order without it waits for the regular open, even if you submit it at 6 p.m.
- Stop orders usually don't work. Most brokers do not trigger stop and stop-limit orders outside the regular session. The stop previews later in this tutorial note this limit.
- Day orders expire at the end of their session window. A good-til-canceled (GTC) order does not automatically work in extended hours unless your broker says it does.
- Limited routing. Orders go to electronic venues rather than the main exchange auction, and a fill may need a matching order on the same venue. A limit order can sit unfilled even when the last price looks reachable.
Because the limit price caps what you pay (or sets the least you accept), it is your main protection. A buy limit fills at the limit or lower. It will not fill at a higher price however thin the book gets.
Choosing a limit price in a thin market
Take a stock whose quote reads bid 49.70, ask 50.30 after hours. You want to buy 20 shares. You have three reasonable options:
- Set the limit at or above the ask (say 50.30) for a likely fill, accepting the wide spread.
- Set it between bid and ask (say 50.00) and wait. Your order becomes the best bid, and a seller may meet you, but you may not fill.
- Set it at the bid or lower and wait for the regular session. Fills are unlikely, but you pay no spread premium.
There is no universally right choice. A patient buyer often waits for the regular session. A buyer reacting to news may accept the cost. Either way, the limit price is your decision, so write down the most you will pay before you submit.
Be careful with a limit set far from the current quote. It can sit unfilled, then fill suddenly if the price moves through it when news hits. Size and price the order as if that fill could happen at any time.
Checking the session in code
The sketch below classifies a timestamp into a session and rejects market orders outside the regular session. It ignores market holidays and early closes. A real system would use an exchange calendar.
from datetime import datetime, time
from zoneinfo import ZoneInfo
NY = ZoneInfo("America/New_York")
PRE_OPEN, REG_OPEN = time(4, 0), time(9, 30)
REG_CLOSE, POST_CLOSE = time(16, 0), time(20, 0)
def session(ts):
"""Return the session name for a timezone-aware datetime."""
ts = ts.astimezone(NY)
if ts.weekday() >= 5: # Saturday or Sunday
return "closed"
t = ts.time()
if REG_OPEN <= t < REG_CLOSE:
return "regular"
if PRE_OPEN <= t < REG_OPEN:
return "pre-market"
if REG_CLOSE <= t < POST_CLOSE:
return "after-hours"
return "closed"
def check_order(order_type, ts):
"""Apply the common broker rule: extended hours accept limit orders only."""
s = session(ts)
if s == "closed":
return "queued for next session"
if s != "regular" and order_type != "limit":
return "rejected: use a limit order in " + s
return "accepted in " + s
tuesday_evening = datetime(2026, 11, 24, 17, 30, tzinfo=NY)
tuesday_midday = datetime(2026, 11, 24, 12, 0, tzinfo=NY)
print(check_order("market", tuesday_evening)) # rejected: use a limit order in after-hours
print(check_order("limit", tuesday_evening)) # accepted in after-hours
print(check_order("market", tuesday_midday)) # accepted in regularReal brokers behave differently in the details. Some accept the market order and hold it for the open, and others reject it. Test with a paper-trading account to see what yours does.
Common errors
- Assuming an after-hours order will fill at the last price. It fills only if someone trades against your limit.
- Forgetting the extended-hours flag. Your order then waits for 9:30 a.m. and may fill at a very different price after an overnight gap.
- Using a stop for protection overnight. If it does not trigger outside the regular session, you have no protection until the open.
- Reading the opening price as the after-hours move. The regular open resets liquidity, and the opening price can differ again from the extended-hours price.
- Comparing quotes across venues. Extended-hours prices can differ between venues, so your broker's quote may not match another site's.
Decision criteria
Trade in regular hours by default. Consider extended hours only when you have a specific reason, such as reacting to an earnings release, and then only with a limit price you chose in advance and a size you can afford if the fill is worse than expected. If you can wait until 9:30 a.m. ET without losing anything important, waiting is usually the cheaper choice.
Exercise
At 6:15 p.m. ET on a weekday, a stock shows bid 24.10 and ask 24.90. You want to buy 100 shares and do not want to pay more than 24.50. What order should you place, and what should you expect?
Show answer
Place a limit buy at 24.50 with the extended-hours option enabled, because market orders are generally not accepted after hours. The order fills only if a seller meets 24.50 or lower. It is below the 24.90 ask, so it will probably rest on the book unfilled until a seller comes to it. Without the extended-hours flag it would wait for the next regular open instead.
Exercise
The regular-session spread on a stock is 0.05 at a midpoint of 25.00. After hours the spread is 0.50 at the same midpoint. By how much does the spread as a percentage of the midpoint grow, and what does that mean for a round trip (buying and then selling with market-style fills at the ask and bid)?
Show answer
The regular spread is 0.05 / 25.00 = 0.2%, and the after-hours spread is 0.50 / 25.00 = 2.0%, which is ten times larger. A round trip at the ask and bid costs about the full spread, so roughly 2.0% of the position after hours versus 0.2% in the regular session, before fees.