InQuantWeTrust logo
ArticleCommunity articleby Maya Chen7 min read

IBKR Time-in-Force: DAY, GTC, and GTD

A practical reference for choosing DAY, GTC, and GTD time-in-force settings in IBKR order workflows.

IBKRTime in forceDAYGTCGTDOrders

Why time-in-force matters

Time-in-force controls how long your order stays active and can materially change execution outcomes.

Treat TIF as a first-class risk parameter, not an afterthought.

Quick reference

  • DAY: valid only for the current trading day/session.
  • GTC: remains active until filled or canceled (subject to broker/exchange rules).
  • GTD: active until a specific expiration date/time.

Example

python
from ib_insync import LimitOrder

day_order = LimitOrder("BUY", 5, 180.00, tif="DAY")
gtc_order = LimitOrder("BUY", 5, 178.00, tif="GTC")
gtd_order = LimitOrder("BUY", 5, 176.00, tif="GTD", goodTillDate="20260610 15:59:00 US/Eastern")

print(day_order.tif, gtc_order.tif, gtd_order.tif)
Status: PublishedFree article0 comments (thread persistence moves to PostgreSQL phase)

Related articles