Fill-or-Kill (FOK) Orders
Fill-or-Kill (FOK) Orders
A fill-or-kill (FOK) order is an all-or-nothing mandate that either executes your entire position immediately at your specified price or cancels completely within seconds. Unlike day orders that hunt for partial execution throughout the session, or immediate-or-cancel orders that accept partial fills, an FOK order demands complete execution right now—or nothing at all. Understanding FOK orders is essential for traders seeking to enter or exit large positions with certainty, manage liquidity risk precisely, and avoid the complications of partial positions that linger unfilled.
Quick definition: A fill-or-kill order is an instruction to buy or sell an entire quantity immediately at your specified limit price or cancel completely if full execution cannot be achieved.
Key Takeaways
- FOK orders execute completely or cancel instantly—there is no partial fill waiting until tomorrow
- All-or-nothing execution prevents fragmented positions and reduces overnight exposure
- FOK orders are typically used for larger positions where partial execution creates problems
- Execution window is typically seconds, making FOK more aggressive than limit orders
- FOK orders work with both market orders and limit orders, though limit FOKs are more common
- FOK is distinct from IOC (immediate-or-cancel), which accepts partial fills
The Mechanics of All-or-Nothing Execution
A fill-or-kill order works by submitting your entire requested quantity to the order matching system with a strict instruction: match the entire quantity at the limit price, or match nothing and cancel immediately. The broker or exchange attempts to locate counterparties for the full size within a brief window—typically one to three seconds depending on the exchange and system. If full execution happens, you're done. If full execution is impossible, the order is withdrawn from the market immediately.
This is fundamentally different from a traditional limit order, which remains in the market throughout the trading day, allowing partial fills to accumulate as different counterparties offer liquidity at your target price. A limit order might fill 200 shares from one counterparty, then 150 shares from another later, and finish the day with 350 total shares executed and 150 still waiting. An FOK order doesn't allow this pattern—it's all 500 shares now or zero shares now.
The critical mechanism is the exchange's matching engine. When your FOK order enters the system, the matching algorithm checks the current order book—the list of all buy and sell orders at various prices. If there is sufficient liquidity at your specified price to fill your entire quantity, the execution happens in milliseconds. If there isn't enough, the order is automatically cancelled without being added to the visible order book.
Most major exchanges—including NASDAQ and NYSE—support FOK orders, though implementation details vary slightly. NASDAQ's system processes FOK orders with millisecond precision, while some other exchanges might allow slightly longer matching windows. Regardless, the principle is identical: all-or-nothing, execute immediately or cancel immediately.
FOK vs. IOC: The Critical Distinction
The difference between fill-or-kill and immediate-or-cancel orders confuses many traders because both sound similar and both involve immediate execution. The distinction is crucial: IOC orders accept partial fills, while FOK orders do not.
An IOC order says: "Execute immediately whatever quantity is available at my limit price, and cancel anything that doesn't fill instantly." If you place an IOC order to buy 500 shares at $60.00 and only 300 shares are available at that price, you get 300 shares and the remaining 150-share request is cancelled. You now own 300 shares outright.
An FOK order says: "Execute all 500 shares at $60.00 right now, or cancel all 500 and leave me with zero shares." If only 300 shares are available, you get nothing. You don't own any shares, and your cash remains fully available.
This distinction determines which order type fits your strategy. Traders accumulating a position and willing to take partial entry are comfortable with IOC. Traders who need to enter a specific full position or not trade at all require FOK.
Brokerages support both, but default behavior differs. Some brokers default to IOC for efficiency (accepting partial fills is faster), while others allow you to choose. Always confirm your broker's behavior and explicitly specify FOK if that's your intention.
When Liquidity Makes or Breaks Execution
Liquidity is the fundamental constraint on FOK execution. For an FOK order to fill, the market must have sufficient depth at your specified price at the precise moment your order arrives. This is where order size and market conditions become critical.
A large-cap technology stock with millions of shares trading daily has substantial liquidity across most price points. An FOK order for 1,000 shares will almost certainly fill if your limit price is near the current market price. But an FOK order for 100,000 shares might not—even in a liquid stock, there might not be 100,000 shares available for sale at exactly your target price at any given instant.
This liquidity asymmetry explains why FOK orders work better for moderately sized positions in liquid markets. A day trader might use an FOK to enter a position of 5,000 shares in a highly liquid technology stock, confident that sufficient liquidity exists. But a trader trying to establish a large position in a less liquid small-cap stock would likely use a different approach—perhaps spreading the purchase across multiple days with limit orders, or using a VWAP order that seeks execution across multiple price points.
Order book depth determines whether your FOK succeeds or fails. The bid-ask spread is important too—your limit price must be at or better than the best available counterparty offer. If you're buying and set your limit at $50.00 but the best ask is $50.05, your FOK order will not fill any shares.
FOK Orders and Liquidity Pools
Electronic Communications Networks (ECNs) and alternative trading systems (ATS) have fragmented market liquidity. Some shares of a given stock trade on NASDAQ, some on CBOE, some on regional exchanges, and some in dark pools (non-public venues). No single order book contains all available liquidity.
Your broker's order routing system determines where your FOK order is sent. Some brokers route to multiple venues simultaneously, attempting to find liquidity across multiple pools. Others route to a single primary venue. If your primary venue doesn't have sufficient liquidity for your FOK, the order will be killed even if sufficient liquidity exists elsewhere.
Advanced traders account for this by using smart order routing or direct market access (DMA) systems that allow manual control over where orders are sent. Standard retail brokers typically use automatic routing that attempts to optimize execution, which may or may not work favorably for your FOK.
This fragmented-liquidity reality is one reason FOK orders are less common for large institutional positions. Institutions can use block trading desks, which work with counterparties to arrange large trades outside the electronic order book system, or they can use more sophisticated algorithms that split orders across venues.
FOK With Limit Orders vs. Market Orders
FOK orders can be paired with either a limit price or executed as a market order variant. The most common is a limit FOK—you specify a limit price, and your entire quantity must fill at that price or better, or the order is killed. This provides price protection while maintaining the all-or-nothing execution requirement.
A market FOK is less common but exists in some broker systems. It attempts to execute your entire quantity at the current market price, accepting whatever slippage the market imposes, with the all-or-nothing constraint. This is rare because market orders already execute immediately by definition, and adding the all-or-nothing requirement creates a logical awkwardness—if you're willing to accept market price, why demand full execution? The order would almost always fill.
Market FOK orders might make sense in highly fragmented markets or illiquid securities where you want to ensure you execute fully at whatever market price exists, rather than being filled for a partial quantity at the best offer. But this scenario is niche.
Most traders focus on limit FOK orders, which are the practical tool: specify your target price and require all-or-nothing execution.
Execution Timeframes and System Latency
The "immediate" in "fill-or-kill" is measured in milliseconds. Modern exchanges process orders in microseconds (millionths of a second), though from a trader's perspective, the execution decision happens within a few milliseconds.
This speed creates a risk: market conditions change constantly. You might place your FOK order believing liquidity exists at your target price, but by the time the order reaches the exchange (some latency due to network travel time, broker systems processing, etc.), the best bid or ask might have moved, and the liquidity has disappeared.
High-frequency trading firms exploit this latency advantage by placing and canceling orders in the microseconds before your order reaches the exchange. This is one reason order latency and direct market access are valued by professional traders—they minimize the time gap between when they decide to trade and when their order reaches the matching engine.
For retail traders using standard brokerages, this latency is unavoidable but typically measured in 10-100 milliseconds. In very fast-moving markets, this latency can be enough to prevent an FOK from filling when you expected it to.
Risk Profile and Position Certainty
The all-or-nothing constraint changes your risk profile. If you execute an FOK order to buy 10,000 shares at $45.00, you know with certainty that either you own exactly 10,000 shares at an average price of $45.00 or better, or you own zero shares. There is no middle ground.
This certainty is valuable for position management. You've made a decision: if I can get in at $45.00 for the full amount, I want it. If I can't, I don't want a partial position. This eliminates the cognitive and operational burden of deciding what to do with a partial fill the next day.
Conversely, the all-or-nothing constraint means you might miss opportunities for partial execution. If the stock drops to $45.00 and only 6,000 shares are available, an IOC order would give you 6,000 shares and you'd own part of your intended position. An FOK would give you nothing, and you'd need to decide if you want to place a new order, possibly at a higher price.
The risk-reward tradeoff is: certainty (either full position or no position) versus flexibility (ability to accumulate partial fills).
FOK Execution Decision Tree
Practical Scenarios
Scenario 1: The Successful FOK in a Liquid Market. A day trader wants to establish a position of 2,000 shares of a highly liquid mega-cap stock. They place an FOK limit order to buy 2,000 shares at $150.00. At that instant, the order book shows 3,000 shares available at $150.00 from various sellers. The exchange immediately matches all 2,000 shares from those sellers, and the trader now owns 2,000 shares. The order completes in under 10 milliseconds. This is a typical successful FOK.
Scenario 2: The Failed FOK in a Liquid Market. The same trader places an FOK to buy 5,000 shares at $150.00 in the same stock. But this time, only 1,200 shares are available at that exact price. The FOK requirement means the entire 5,000-share order is killed without any fill. The trader owns zero shares. If they still want to trade, they must place a new order—perhaps at a higher limit price, or with a different time-in-force specification.
Scenario 3: The FOK in a Less Liquid Stock. A trader places an FOK order for 3,000 shares of a smaller-cap stock at $32.50. This stock trades far less volume than mega-cap stocks, and the order book typically shows only 500-800 shares available at any given price point. The FOK fails to fill because 3,000 shares are not available at $32.50. The trader must either reduce the order size, increase the limit price to attract more sellers, or abandon the FOK approach and use a regular limit order that accumulates across multiple fills over hours or days.
Scenario 4: Avoiding a Partial Overnight Position. A trader places an FOK to exit a 500-share position at $67.00 at 3:50 p.m. ET, just before market close. Sufficient liquidity exists, and the entire 500 shares sell at $67.00. The trader is completely out of the position and carries no overnight risk. If they'd used a regular limit order instead and only 300 shares sold, they'd carry 200 shares overnight—potentially costly if the stock gaps down after hours on news.
FOK in Different Market Conditions
In volatile, fast-moving markets, FOK orders are less reliable because liquidity evaporates rapidly. The order book can shift dramatically in the milliseconds it takes for your order to be processed. FOK orders might fail to fill even in moderately liquid stocks because the landscape has changed so dramatically.
In stable, consolidating markets, FOK orders are more effective. Liquidity is relatively predictable, and the order book doesn't shift as rapidly. Your FOK is more likely to find its full quantity waiting.
During opening and closing auctions, special FOK variants exist. These are designed to participate in the opening print (the first price of the day) or closing print. Standard FOK orders don't work during auctions because auction matching is different from continuous matching.
In after-hours trading, liquidity is generally lower, and FOK orders are less practical. The order book contains fewer participants and less depth, making all-or-nothing execution less feasible.
FOK and Regulatory Compliance
FOK orders are fully compliant with SEC regulations and FINRA rules. According to FINRA Rule 5210, member firms are required to establish and maintain systems capable of handling all standard order types, including FOK orders, fairly and efficiently. Brokers are required to handle them properly and document them in their order records. However, some brokers' systems may not support FOK orders directly—this varies by platform and security type (stocks vs. options).
Always confirm with your broker that FOK orders are available for the security you want to trade. Most major brokerages support FOK on common stocks and ETFs, but some may not support FOK on options, futures, or international stocks.
The SEC's order handling requirements under SEC Regulation SHO and SEC Rule 10b-5 all apply to FOK orders. Brokers cannot use FOK orders to circumvent these rules or to engage in market manipulation. An FOK order that reveals your intention to trade a large quantity could potentially be used manipulatively if combined with other strategies, but the order type itself is neutral.
The FINRA Best Execution Rule 5310-1 requires that brokers provide customers with order executions that represent the best balance of price and execution quality available, which applies equally to FOK orders as to other types. When a FOK order fails to fill, the reason is insufficient liquidity at your price, not broker failure to provide best execution.
Comparing FOK to Other All-or-Nothing Approaches
All-or-None (AON) Orders are similar to FOK but differ in timing. An AON order stays in the market, continuing to hunt for all-or-nothing execution, while an FOK is killed if full execution doesn't happen immediately. AON is better for positions where you have time to wait for the full amount; FOK is better when you need a rapid execution decision.
Good-Till-Canceled (GTC) Orders are the opposite of FOK in every way. They stay in the market indefinitely, accepting partial fills, until you manually cancel or the order is filled completely. They're appropriate for long-term position building.
Block Trades and VWAP Orders are institutional alternatives to FOK for large positions, using different execution strategies rather than the all-or-nothing, immediate requirement.
Real-World Examples
An algorithmic trader places FOK orders across multiple securities simultaneously, executing a statistical arbitrage strategy that requires precise timing and full execution of specific position sizes. If any leg of the strategy cannot be executed in full, the entire setup is broken and the other legs are cancelled. FOK orders are ideal here. For example, a pairs trading strategy that goes long Stock A and short Stock B requires simultaneous execution of both legs in precise quantities. FOK orders ensure both legs either happen together or not at all—preventing a scenario where only the long position executes and the hedge fails.
A securities dealer making markets in a specific stock often uses FOK orders to quickly hedge positions. If they've just sold 5,000 shares to a customer, they immediately place an FOK to buy 5,000 shares from the market to neutralize their exposure. They need the full 5,000 shares immediately—a partial fill would leave them exposed to the unhedged portion. The dealer's margin requirements and risk management systems depend on the ability to precisely hedge customer positions.
A retail trader exiting a position at a psychological resistance level places an FOK order knowing that if they can't get out completely at that price, they prefer to stay in and reassess rather than own a partial position overnight. They might have conviction that the stock will reverse at the resistance level, so if they can only exit part of the position at that level, they'd rather hold and reassess the following day with fresh information.
An institutional fund manager needs to exit a 50,000-share position in a mid-cap stock due to portfolio drift or rebalancing requirement. They could use multiple orders or patient algorithms, but they need certainty about whether the full exit happened or not. An FOK order provides that certainty: if it fills, they're completely out; if it doesn't, they reassess with alternative strategies (like VWAP algorithms or block trades).
Common Mistakes
Overestimating liquidity and overusing FOK. A trader in a small-cap stock places an FOK for a large quantity, expects it to fill, and is surprised when it kills. Small-cap stocks simply don't have the depth required. FOK orders work best in liquid stocks.
Confusing FOK with IOC. A trader places an FOK expecting partial fills, not realizing that FOK is all-or-nothing. They're disappointed when no partial fill happens and they own nothing.
Setting FOK prices too tight. An FOK order to buy at $50.00 in a stock where the current ask is $50.10 will never fill. The limit price must be at or better than available counterparties' asks (for buy orders) or bids (for sell orders). Traders sometimes place overly restrictive FOK orders expecting them to fill and then are confused.
Not confirming your broker supports FOK. Some brokerages or order entry systems don't offer FOK orders directly. A trader might place what they think is an FOK order, but it's actually being processed as a regular limit order, leading to unexpected partial fills or overnight positions.
Using FOK in after-hours trading. After-hours markets have minimal liquidity. An FOK that would fill easily in regular hours will fail repeatedly in after-hours because there simply isn't enough depth.
FAQ
Q: Can an FOK order partially fill? A: No. An FOK order either fills completely or is cancelled. There is no middle ground. If full execution is impossible, zero shares are filled.
Q: How long does a broker have to wait before killing an FOK order? A: Typically seconds at most, and often milliseconds. The exact duration varies by broker and exchange, but the intent is immediate. A FOK order should not sit in the market waiting for extended periods.
Q: Can I place an FOK order and then cancel it myself? A: If the FOK hasn't already been killed by the system (for failing to fill fully), yes, you can cancel it. But by design, FOK orders are killed automatically if they don't achieve full execution immediately, so manual cancellation is often moot.
Q: Is an FOK order more expensive than a regular limit order? A: Not at the commission level—most brokers charge the same commission regardless of order type. However, FOK orders may have worse execution pricing because you're demanding immediate full execution, which might require accepting less favorable prices or dealing with wider spreads.
Q: Can I use an FOK order to buy or only to sell? A: FOK orders work identically for both buy and sell orders. The mechanics are the same regardless of direction.
Q: What's the difference between FOK and AON? A: FOK requires immediate all-or-nothing execution (kills if not filled instantly), while AON orders stay in the market hunting for all-or-nothing execution across multiple fills and time. AON is more patient; FOK is more aggressive.
Q: Can I place an FOK on an illiquid stock? A: Technically yes, but it's impractical. Illiquid stocks lack the depth to satisfy all-or-nothing execution in any meaningful size. Your FOK will almost certainly be killed without filling.
Related Concepts
All-or-None (AON) Orders use the same all-or-nothing principle but persist in the market longer, accumulating fills toward the full quantity.
Immediate-or-Cancel (IOC) Orders are similar to FOK but accept partial fills, allowing you to own a partial position if full execution isn't available.
Day Orders are the baseline for most retail trading, hunting for partial fills throughout the session without the all-or-nothing constraint.
Liquidity and Bid-Ask Spreads are fundamental to FOK success—insufficient depth at your target price guarantees failure.
Block Trading and Dark Pools offer alternative execution paths for large orders that can't use FOK effectively.
Understanding Liquidity and Best Execution with FOK
When you place an FOK order and it fails to fill, it's important to understand that this is not a failure of your broker—it's a reflection of market liquidity. Your broker's obligation for best execution (as defined in SEC Rule 10b-5) extends only to the liquidity that actually exists in the market at the time your order is processed.
If an FOK order to buy 10,000 shares at $50.00 doesn't fill because only 6,000 shares are available at that price, your broker has provided best execution—they routed your order to find the best available liquidity, and there simply wasn't enough. The problem is not your broker but the market reality. This understanding helps traders make more realistic decisions about order sizing and price targets.
The Investor.gov FAQ on trading explains that investors should understand their order types to avoid confusion or unexpected outcomes. FOK orders fit this principle perfectly—they do exactly what they promise, no more and no less.
Summary
Fill-or-kill orders are the all-or-nothing mandate of the trading world, executing your entire requested quantity immediately at your specified price or cancelling completely. They're ideal for traders who need position certainty—either they own the full amount or nothing—and can't tolerate partial fills. FOK orders work best in liquid markets with moderate position sizes, and they're particularly valuable for exits near market close when you want to avoid overnight exposure. Understanding when FOK is appropriate (liquid stocks, moderate sizes, immediate execution needed) versus when it's impractical (illiquid stocks, large sizes, after-hours) is essential for deploying them effectively.
The distinction between FOK and IOC is critical—one accepts partial fills, the other doesn't. Brokers support both, but you must explicitly specify FOK if that's your intention. For traders seeking to enter and exit positions with certainty and without operational complexity, FOK orders provide a clean, decisive tool. Their reliability and clarity make them invaluable for specific trading strategies that depend on precise position sizing.
Next
→ Immediate-or-Cancel (IOC) Orders