GTC — Good Till Cancelled
GTC — Good Till Cancelled
The default. A GTC order rests in the order book until it is fully filled or you explicitly cancel it.Behavior:
- If the order can match immediately, it fills (partially or fully)
- Any unfilled remainder stays in the book indefinitely
- The order persists across trading sessions and server restarts
- You must actively cancel the order to remove it
- Standard limit orders where you’re willing to wait
- Setting target entry or exit prices
- Market making (quoting two-sided with resting limit orders)
GTC orders count against your credit utilization if you are a market maker. Resting orders reserve both balance and credit quota. See MM Credit System.
IOC — Immediate or Cancel
IOC — Immediate or Cancel
An IOC order executes as much as possible immediately, then cancels any unfilled remainder. It never rests in the book.Behavior:
- Matches against available orders at the specified price or better
- Any quantity that cannot fill immediately is cancelled
- Executes in a single engine pass — no waiting
- May result in zero fills if no matching orders exist
- When you want to take available liquidity at a price without leaving a resting order
- Algorithmic strategies that want precise control over order lifetime
- Avoiding the risk of a limit order filling later at an unfavorable time
FOK — Fill or Kill
FOK — Fill or Kill
An FOK order must fill completely and immediately, or it is cancelled entirely. There are no partial fills.Behavior:
- The engine checks if the full quantity can fill immediately
- If yes: the order executes fully in one atomic operation
- If no: the entire order is cancelled, zero fills occur
- When you need a specific quantity and partial fills are not acceptable
- Strategies that require an all-or-nothing guarantee
- Avoiding partial position building that complicates risk management
Post-Only
Post-Only
A Post-Only order is guaranteed to be a maker order. If the order would match immediately as a taker, it is rejected. Only orders that will rest in the book are accepted.Behavior:
- Accepted only if it would not immediately match any existing order
- If the order would be a taker (aggressive), it is rejected with no fills
- If accepted, rests in the book as a GTC order
- Market making — you always want maker status (and maker fees/rebates)
- Strategies that are extremely fee-sensitive
- Ensuring your limit order improves the market (tightens the spread)
Comparison Table
| TIF | Rests in book | Partial fill | Immediate execution | Always maker |
|---|---|---|---|---|
| GTC | Yes | Yes | If price matches | No |
| IOC | No | Yes | Yes (or cancel) | No |
| FOK | No | No | Yes (or full cancel) | No |
| Post-Only | Yes (or reject) | Yes (once resting) | No | Yes |
TIF and Order Types
Not all TIF options are valid with all order types:| Order Type | Valid TIF options |
|---|---|
| Limit | GTC, IOC, FOK, Post-Only |
| Market | IOC (implicitly — market orders are always immediate) |
API Encoding
TIF values in the API are lowercase strings:| TIF | API value |
|---|---|
| Good Till Cancelled | "gtc" |
| Immediate or Cancel | "ioc" |
| Fill or Kill | "fok" |
| Post-Only | "post_only" |