GTC, IOC and FOK Spot Orders: Time-in-Force Explained
Time in force tells an exchange how long an order may remain active and what to do with any quantity that cannot execute immediately. Good-till-canceled, immediate-or-cancel and fill-or-kill instructions can produce very different outcomes even when the side, price and quantity are identical.
Start with the order book
A limit buy can trade only at its limit price or lower, while a limit sell can trade only at its limit price or higher. Available quantity is distributed across bids and asks. Review bids, asks, spread and depth before using an instruction that depends on immediate liquidity.
Suppose the best asks offer 300 units at 10.00 and 200 units at 10.01. A buy limit for 700 units at 10.01 can reach only 500 visible units under these simplified conditions. The time-in-force choice determines what happens to the remaining 200.
GTC can leave a remainder on the book
Good-till-canceled normally allows an order to remain open until it fills, the trader cancels it, or the venue removes it under its rules. In the example, 500 units could fill and 200 could remain open at the limit price.
An open order can reserve account balance and may execute later after market conditions change. Review it rather than assuming an unfilled remainder disappeared. A limit order is also not guaranteed to fill; compare the basic behavior of market and limit orders first.
IOC cancels the part that cannot fill now
Immediate-or-cancel attempts to execute available eligible quantity immediately and cancels the rest. In the example, up to 500 units could fill and the remaining 200 would be canceled. The exact fill can be smaller if liquidity changes before matching.
IOC can reduce the chance of leaving an order resting on the book, but it does not guarantee a complete fill or one execution price. Multiple fills can occur across eligible price levels.
FOK requires the whole quantity immediately
Fill-or-kill requires the full requested quantity to execute immediately under the order's price conditions; otherwise, the order is canceled. Because only 500 eligible units are visible in the example, a 700-unit FOK order would not execute under the simplified assumptions.
Do not treat visible depth as a promise. Other orders can arrive, cancel or execute before yours. Venue rules can also define supported instructions differently, so check the current order form and product documentation.
Check fees, status and filled quantity
An execution can be classified as maker or taker depending on whether it adds or removes liquidity under the venue's rules. The maker and taker fee guide explains why an immediate instruction can affect cost.
After submission, verify the order status, cumulative filled quantity, weighted average price, remaining quantity and fees. A canceled remainder does not reverse quantity that already filled.
Common questions
Is IOC the same as a market order?
No. IOC is a time-in-force instruction. It can be attached to an eligible order type, while market or limit describes price behavior.
Does FOK guarantee a favorable price?
No. It only controls whether the full quantity executes immediately within the order's price conditions.
Which instruction is best?
There is no universal choice. Match the instruction to whether partial fills, resting exposure and immediate execution are acceptable, then confirm which options the current market supports.