IOC, FOK or GTC: decide what happens to the unfilled size
Time in force controls how long an order remains active and how it handles incomplete execution. IOC permits an immediate partial fill and cancels the remainder, FOK requires the entire size immediately, and GTC leaves an eligible remainder working until completion or cancellation, subject to venue rules.
Key takeaways
- Choose the outcome you can manage
- Compare the same small book
- Check the remainder before leaving the screen
Time in force controls how long an order remains active and how it handles incomplete execution. IOC permits an immediate partial fill and cancels the remainder, FOK requires the entire size immediately, and GTC leaves an eligible remainder working until completion or cancellation, subject to venue rules.
Choose the outcome you can manage
Imagine you want an entry only while the current opportunity is available. An order left resting after that opportunity disappears can create a later position you no longer want. Alternatively, accepting a partial position can complicate a plan that needs the full size. Write down the acceptable outcome before selecting an abbreviation.
Use IOC when an immediate partial amount is acceptable and you want the rest cancelled. Use FOK when the instruction must execute in full immediately or leave no fill. Use GTC when you are prepared to monitor an outstanding remainder. Availability, matching rules and possible expiry policies vary by product; the labels alone do not confirm support in your account.
These settings can accompany price constraints. An IOC limit still respects its limit. It does not have to buy beyond that boundary to complete the requested quantity. FOK is not a promise that the market can supply the size. GTC permits waiting, including waiting long enough for the original reason for the trade to become stale.
Compare the same small book
For an imagined spot buy, request 10 units at a limit of 100 USDT. Assume only 6 units are immediately executable at that price, with no other eligible liquidity available. Keep the book fixed for this exercise; real quotes can change before the order arrives.
IOC outcome: buys 6 units for 600 USDT and cancels the remaining 4 units.
FOK outcome: no fill, because the full 10 units are unavailable under these assumptions.
GTC outcome: buys the available 6 units and leaves 4 units resting, assuming the product accepts and retains that remainder.
The reviewed OKX regular-user standard spot base taker fee checked on 2026-10-10 was 0.10%, sourced from the official fee page. Apply it only to the immediate executions in this scenario: 600 × 0.001 = 0.60 USDT as a fee equivalent. Both the IOC fill and the immediate part of the GTC order have that illustrative fee. FOK has no trading fee here because no execution occurred.
A later fill of the GTC remainder needs its own price, liquidity classification and fee calculation. You cannot assign the earlier taker calculation to a future maker fill. All book sizes and prices above are teaching inputs. The historical public rate excludes current account and regional confirmation, discounts and referral benefits; the example does not verify OKX support for these settings on a particular pair.
Check the remainder before leaving the screen
For IOC, confirm the filled size and final cancelled remainder. For FOK, confirm whether the complete order executed or no trade occurred. For GTC, record what is still open and when you intend to revisit it. Changing your trading plan does not automatically cancel the old instruction.
Consult the OKX venue hub when comparing the fee context, then check the actual product’s order options. A useful final check is to read the order history alongside open orders: an empty open-order list can mean a fill, cancellation or rejection, with very different consequences for your balance.
Related definitions: time-in-force
Quick check
You accept an immediate partial amount but want no remainder waiting. Which setting matches that instruction?
Hypothetical exercise: explain your answer before opening the solution.
Show the answer
IOC, where supported. Verify its resulting status and actual fills. Review the OKX fee and product hub for context; choosing an expiry instruction does not establish eligibility or a current fee rate.
Frequently asked questions
You accept an immediate partial amount but want no remainder waiting. Which setting matches that instruction?
IOC, where supported. Verify its resulting status and actual fills. Review the OKX fee and product hub for context; choosing an expiry instruction does not establish eligibility or a current fee rate.