What is a fill-or-kill (FOK) order?

Fill or kill (FOK) is an execution condition requiring the entire order to fill immediately or be canceled in full. It accepts no partial fill and leaves no unfilled quantity waiting for another opportunity. In crypto trading, FOK is often combined with a limit order.

How does FOK work?

After an order is submitted and passes the checks, the trading system checks whether eligible opposite-side orders can meet its entire quantity at acceptable prices. If they can do so immediately, the whole order fills; otherwise, the whole order is canceled.

Suppose a FOK limit buy order requests 10 units. If only 8 units can be bought immediately within the price limit, it does not buy those 8 first: nothing fills. If enough eligible quantity is available for all 10 units, it can execute. These quantities only illustrate the rule.

The quantity may come from several counterparties and price levels. The order does not have to match a single counterparty at one price. What matters is the orders actually available when matching occurs, not the quantity previously displayed before submission.

How does FOK differ from IOC?

IOC stands for immediate or cancel. It accepts an immediate partial fill and cancels the remaining quantity.

Using the same example of buying 10 units when only 8 can currently fill, IOC can fill 8 and cancel 2; FOK cancels the whole order. Neither leaves unfilled quantity waiting in the book. The difference is whether partial fills are accepted.

FOK specifies quantity and timing requirements; a limit specifies price. Neither substitutes for the other. Balance and other trading restrictions must also pass checks. Without an execution, no execution-based trading fee arises.

Explore market orders and post-only orders, or return to the crypto glossary.

References

Disclaimer
This content is provided for informational purposes only and may cover products that are not available in your region. It is not intended to provide (i) investment advice or an investment recommendation; (ii) an offer or solicitation to buy, sell, or hold crypto/digital assets, or (iii) financial, accounting, legal, or tax advice. Crypto/digital asset holdings, including stablecoins, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding crypto/digital assets is suitable for you in light of your financial condition. Please consult your legal/tax/investment professional for questions about your specific circumstances. Information (including market data and statistical information, if any) appearing in this post is for general information purposes only. While all reasonable care has been taken in preparing this data and graphs, no responsibility or liability is accepted for any errors of fact or omission expressed herein.

Digital Assets subject to volatility and not insured. Not financial/investment advice. Not all products and services offered in all regions. Exclusions and T&Cs apply.

© 2026 OKX. This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2026 OKX and is used with permission.” Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2026 OKX.” Some content may be generated or assisted by artificial intelligence (AI) tools. No derivative works or other uses of this article are permitted.

Related articles

View more
thumbnail:bullish-calendar-spread-strategy

What is a maker?

**A maker is the party that first provides a quote in an order book and later trades when another order matches it.** An order book records unfilled buy and sell quotes and their quantities. In order-
Nov 12, 2026
trade-academy-beginner-4

What is a taker?

**A taker is the party that immediately matches and trades against a quote already in the order book.** The order book records unfilled buy and sell quotes and their quantities. A taker accepts one of
Nov 12, 2026
Options trading generic thumb

What is the bid-ask spread?

**The bid-ask spread is the difference between the lowest ask and highest bid in the same market at the same time.** In an order-book-based crypto market, it describes the distance between the closest
Nov 12, 2026
Forward Contracts vs. Futures Contracts What Are the Differences

What is a post-only order?

**A post-only order adds a requirement to a limit order: post a quote without immediately taking an existing one.** In order-book-based crypto spot and derivatives markets, the order book records unfi
Nov 12, 2026
thumbnail:arbitrage-order

What is an immediate-or-cancel (IOC) order?

**An immediate-or-cancel (IOC) order requires the quantity currently available to fill immediately, with any unfilled remainder canceled.** In order-book-based crypto markets, the order book records u
Nov 12, 2026
thumbnail:weekly-report-of-okx-in-5-16-5-22

What is a trigger order?

**A trigger order submits an actual buy or sell order to the trading system only after a preset condition is met.** In crypto trading, the condition is often a price reaching a particular level. The t
Nov 12, 2026
View more