Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Time-in-Force Options

Before diving into specific order types, understand the time-in-force options that control how long your order stays active:

TIF
Name
Behavior

GTC

Good 'Til Canceled

Stays on the order book until filled or you cancel it. Best for setting price targets you're willing to wait for.

GTD

Good 'Til Date

Active until a specified date/time (UTC), then auto-cancels if unfilled. Useful for time-bound strategies.

IOC

Immediate or Cancel

Fills whatever it can immediately at your price or better; cancels the rest. Good for getting partial fills without leaving resting orders.

FOK

Fill or Kill

Must fill the entire order immediately or cancel completely. No partial fills. Use when you need all-or-nothing execution.

ALO

Add Liquidity Only

Cancels if it would execute immediately; ensures you're always the maker (earning rebates instead of paying fees).

When to Use Each

  • GTC: Default choice for limit orders when you're patient

  • GTD: Event-driven trades (e.g., "buy before earnings if price hits X")

  • IOC: You want immediate execution but won't chase price

  • FOK: Large orders where partial fills create unwanted exposure

  • ALO: Market making or when you specifically want maker rebates

Last updated