A fill or kill (FOK) order tells a trading venue to execute the entire order immediately at the specified price. If the full size is not available right away, the order is canceled on the spot. FOK is a “time in force” instruction that sets very strict conditions on both timing and quantity.
With FOK, you usually set a limit price and a total quantity. The system checks the order book. If there is enough volume at your price to satisfy the whole order instantly, the trade goes through. If not, nothing happens and the order disappears. Some markets enforce this immediacy within seconds of the order reaching the book.)
Traders pick FOK when they want the full position right away and do not want partial fills. This can be handy for time-sensitive strategies or when coordinating across multiple venues. In crypto, a trader might send the same full-size FOK order to several exchanges and then keep whichever one fills in full, canceling the rest.
Pros. You control execution quality by avoiding partial delivery and the hassles that come with stitching small fills together. You also prevent lingering orders that could be picked off in a moving market.
Cons. You may walk away with no trade at all, even if most of your size was available. That can mean missed opportunities, especially in thin books or fast markets.
These cases show up in both traditional markets and crypto exchanges.
Say you want 1,000,000 shares at 15.00. You send a limit FOK at 15.00 for the full amount. If the book cannot satisfy the entire million shares at 15.00 or better right away, the whole order cancels. If it can, you get filled instantly at 15.00 or better.
Details can vary by exchange or platform, including how quickly “immediate” is enforced. Some venues allow FOK only as limit orders, and the feature is not as common as other time-in-force settings. Always check your broker or exchange documentation.