Overview
Time in Force (TIF) determines how long an order remains active before it is executed or canceled. Not all brokers support the same time-in-force instructions. Before submitting an order, verify that the selected broker supports the requested configuration.Broker Support
Use the exact intent values shown in the first column.
The API enum includes every value in this table. The broker column indicates the values currently honored by the end-to-end integration. Market order requests do not include a
time_in_force; Anthid defaults them to DAY during execution.
Time In Force Definitions
Examples
DAY
Buy 100 shares of AAPL at $200.- 60 shares fill during the trading session.
- 40 shares remain unfilled at market close.
- The remaining 40 shares are automatically canceled.
GOOD_TILL_CANCEL
Buy 100 shares of AAPL at $190.- The order remains active across multiple trading days.
- The order stays active until filled, canceled, or expired by the broker.
AT_OPEN
Buy 100 shares of AAPL withAT_OPEN.
- The order participates only in the market opening auction.
- If it cannot execute during the opening cross, it is canceled.
IMMEDIATE_OR_CANCEL
Buy 1,000 shares of AAPL withIMMEDIATE_OR_CANCEL.
- 600 shares are immediately available.
- 600 shares execute.
- The remaining 400 shares are canceled immediately.
AT_CLOSE
Sell 100 shares of AAPL withAT_CLOSE.
- The order participates only in the closing auction.
- If it cannot execute in the closing cross, it is canceled.
FILL_OR_KILL
Buy 1,000 shares of AAPL withFILL_OR_KILL.
- The broker must fill all 1,000 shares immediately.
- If the complete quantity is unavailable, the entire order is canceled.
SMART is a route strategy, not a time-in-force value. See Supported Destinations for route values.