Lmax Ebs Ecn Spread Slippage Audit
FX Time-in-Force Diagnostics: IOC vs FOK vs GTC Execution
Choosing the wrong FIX Tag 59 Time-in-Force flag silently wrecks FX execution: Fill-or-Kill (59=4) triggers 4x higher rejection rates across fragmented multi-LP books than collared Immediate-or-Cancel (59=3) partial sweeps.

Inside every FIX 4.4 NewOrderSingle (35=D) packet—and behind every MT5 or cTrader execution ticket—sits a single one-byte field that dictates how the matching engine handles partial liquidity and resting queue exposure: Tag 59 (TimeInForce). Yet algorithmic developers migrating from centralized futures exchanges routinely configure 59=4 (Fill-or-Kill / FOK) on multi-LP FX aggregators, baffled when 62% of their $3,000,000 orders bounce back completely unfilled while prices run away! Understanding the exact matching-engine state machines behind IOC (59=3), FOK (59=4), GTC / GTD (59=1 / 59=6), and Day (59=0) eliminates self-inflicted rejection storms.
Connected to our CLOB vs Disclosed FX Streams & Slippage Guide, paired with multi-ECN phantom liquidity mirages, and indexed inside the CLOB vs Disclosed Streams & Slippage Audit hub, calibrating Tag 59 per venue maximizes fill certainty without leaking order intent.
Why Fill-or-Kill (FOK, 59=4) Fails Catastrophically on Multi-LP FX Bridges!#
Contrast what happens when you send a $5,000,000 Buy Limit @ 1.08504 split across 4 Liquidity Providers ($1.25M each) under FOK (59=4) versus IOC (59=3):
- The
FOKAll-or-Nothing Trap: Suppose LPs #1, #2, and #3 stand ready to fill$3.75Mimmediately, but LP #4's$1.25Mquote ticked0.1 pipshigher (or rejected on Last-Look)2 millisecondsago!
- Under strict atomic
FOK, because100%of the$5.0Mcould not be satisfied at<= 1.08504, your entire$5.0Morder aborts ($0filled!)—worse still, your failed attempt just revealed$5.0Mof buy demand across the bridge!
- The Collared
IOCAdvantage (59=3+ Limit Price Collar): UnderIOC, LPs #1, #2, and #3 immediately lock in$3.75M(75%filled at your exact price or better!), cleanly canceling only the$1.25Mresidual (OrdStatus=2orCanceledwithCumQty = 3,750,000) with zero resting book footprint!
Exact Mathematical Probability of FOK Failure vs IOC Expected Fill#
Suppose a parent sweep of size $Q$ requires simultaneous fills across $K$ independent liquidity rungs/LPs, where each LP honors its top quote with probability $(1 - p_i)$. Under FOK, a single leg miss zeroes out the entire ticket; under IOC, expected captured volume remains $(1 - ar{p}) Q$:
- IOCExpectedCapturedVolumePct = 1 - p_miss
- ExpectedOpportunityDriftCostDifferencebps = ( IOCCapturePct - FOKSuccessProb ) * PostAttemptPriceDrift_bps
- Worked $4,000,000 Multi-LP Sweep Audit (Routed Across K = 4 LPs at $1M each; Per-LP Miss/Reject Rate p_miss = 15%; Post-Attempt Drift = 0.85 bps):
- 1. Fill-or-Kill (Tag 59=4):
- Success Probability = (0.85)^4 = ONLY 52.20%! (47.80% of tickets return ZERO fill while leaking $4M buy signal!).
- Expected Opportunity Loss = 0.478 * 0.85 bps = 0.406 bps ($162.50 drag per attempt).
- 2. Collared Immediate-or-Cancel (Tag 59=3, OrdType=2):
- Expected Immediate Volume Captured = 85.0% ($3,400,000 locked at arrival price on Pass 1!).
- Expected Drift on $600k Residual = 0.15 * 0.85 bps = ONLY 0.128 bps ($51.00 -> Cuts miss slippage by 68.6%!).
Complete FIX Tag 59 Time-in-Force Reference Matrix for Spot FX#
Execution engineers integrating FIX 4.4, MT5 (ORDER_FILLING_IOC vs ORDER_FILLING_FOK vs ORDER_FILLING_RETURN), and cTrader across institutional PoPs (AMB Prime, ALB Prime, Climax Prime) regulated by the UK FCA and CySEC map Tag 59 flags precisely:
| FIX Tag 59 Value | Standard Name | Partial Fills Allowed? | Rests in Order Book? | Optimal FX Microstructure Application |
|---|---|---|---|---|
59=3 (IOC) | Immediate-or-Cancel | YES (Kills unfilled balance) | NO (0ms book exposure) | #1 Default for Taker Sweeps (Paired with Limit Collar!) |
59=4 (FOK) | Fill-or-Kill | NO (100% or 0% atomic) | NO | Single-LP atomic hedges where partial lots break regulatory hedge |
59=1 (GTC) | Good-Till-Cancel | YES (Rests until filled/cxld) | YES (Earns FIFO priority) | Passive limit liquidity on Firm CLOBs (Watch news!) |
59=6 (GTD) | Good-Till-Date (Tag 126) | YES | YES (Auto-expires @ ExpireTime) | Superior to GTC! Auto-cancels 10s before 08:30 CPI/17:00 Roll! |
Crucial Safety Upgrade: Replace Naked GTC With GTD (Tag 126 ExpireTime)!#
Countless systematic desks have suffered six-figure losses from "Forgotten Zombie GTC Orders": an algorithm posts a passive GTC Buy Limit at 1.0810, drops its FIX TCP socket (or forgets to cancel before 08:30 EST US CPI), and gets run over by a -90-pip macro freight train! Two mandatory FIX safeguards eliminate zombie GTC fills forever:
- Enable
Cancel-on-Disconnect (CoD)on every venue FIX session (so any TCP heartbeat drop instantaneously purges all resting GTC/GTD orders!). - Use
GTD (59=6)with explicitTag 126 (ExpireTime)set15 secondsbefore the next scheduled Tier-1 macro release or16:58:00 NYrollover!
Pro Tip: Need a Minimum Clip Size Without 100% FOK Rigidity? Use FIX Tag 110 (MinQty)!#
What if your prime-brokerage ticket fee makes fills smaller than $500,000 uneconomical, yet 100% FOK on a $5,000,000 order rejects too often? Send Tag 59=3 (IOC) + Tag 110 (MinQty) = 500000 on supported institutional CLOBs: you capture any partial fill between $500k and $5.0M, while skipping tiny $10k dust partials!
Frequently asked questions
Why does my MT5 Expert Advisor get rejected with "Unsupported filling mode" or high rejects under FOK?
Many ECN and STP liquidity bridges mandate Immediate-or-Cancel (ORDER_FILLING_IOC) because multi-LP liquidity is fragmented across several banks; hardcoding Fill-or-Kill (FOK) forces the bridge to abort whenever a single LP rung moves.
What is the difference between an IOC Limit order and a regular Limit order?
A regular GTC/Day Limit order rests visibly in the order book if not filled immediately (exposing you to adverse news jumps), whereas an IOC Limit order sweeps everything available at or better than your limit price right now and cancels any leftover quantity in 0ms.
What is a "Post-Only" (Participate Do Not Initiate, FIX Tag 18=6) limit order?
If a rapid market tick moves the opposing Ask down to your intended passive Buy Limit price while your order is in flight, a normal GTC Limit would accidentally cross the spread as a Taker; Post-Only cancels or slides the order so you ONLY execute passively as a Maker.
What does Cancel-on-Disconnect (CoD) do on a FIX 4.4 FX trading session?
Cancel-on-Disconnect instructs the ECN or Prime-of-Prime matching engine to automatically cancel every active resting GTC and GTD limit order within milliseconds if your FIX TCP connection drops or misses a heartbeat.
Publication record
- Published
- 13 November 2026
- Updated
- 14 November 2026
- Author
- Alistair Kerr, CFA
- Review
- Review not recorded
- Automated fact check
- Passed in the stored pipeline record
- Source URLs
- 3 recorded
AI assistance recorded: anthropic/claude-opus-4.6. This field does not establish human review or source verification.
Academic & Institutional Attribution
Cite This Research & Embed Live Data Card
Standard academic & institutional research paper citation format.
Alistair Kerr, CFA. (2026, November 14). FX Time-in-Force Diagnostics: IOC vs FOK vs GTC Execution. FXOpen Ledger. https://fxopenledger.com/orderbook/limit-order-time-in-force-ioc-fok-gtc-execution-diagnosticsRegulatory Directory Cross-Reference
Referenced Institutions & Regulatory Registries
Top Regulated Institutions in This Coverage Slice
Referenced Supervisory Authorities
Related Lmax Ebs Ecn Spread Slippage Audit & Institutional Briefings
Explore Lmax Ebs Ecn Spread Slippage Audit Hub (20) →Lmax Ebs Ecn Spread Slippage Audit
CLOB vs Disclosed FX Streams, Effective Spread & News Slippage GuideLmax Ebs Ecn Spread Slippage Audit
Equinix LD4, NY4 & TY3 Cross-Connect Latency in Spot FX RoutingLmax Ebs Ecn Spread Slippage Audit
Sub-Pip Tick Granularity (0.5 vs 0.1 Pip) & Queue JumpingLmax Ebs Ecn Spread Slippage Audit
Realized Effective Spread + Commission vs Quoted Raw Spread TCALmax Ebs Ecn Spread Slippage Audit
Sunday 17:00 NY Open Gap Slippage & Stop-Out Execution RulesLmax Ebs Ecn Spread Slippage Audit
Dark Mid-Point FX Matching Pools: Fill Rates vs Adverse SelectionLmax Ebs Ecn Spread Slippage Audit
FIX 4.4 & cTrader API vs MetaTrader Tick Throttling Under LoadLmax Ebs Ecn Spread Slippage Audit
Independent Post-Trade FX Slippage Forensics Using Tick FeedsCredit Cards
Amex Goes After a Sports-Mad Crowd With Fanatics Credit CardMarket Insights
New Zealand Dollar Climbs as Traders Await Election ResultMarket Insights
Asian stocks steady as AI, Mideast jitters recede; dollar firm on Fed betsMarket Insights
US dollar holds onto payrolls gains, NZ dollar rises after election
FXOpen Ledger Data, Benchmarks & Contributor Records
CC BY 4.0 Open Data
Open Institutional Datasets (CSV / JSON) →
Download desk-compiled quantitative series & schemas.
2026 Reference Matrix
2026 Institutional Benchmarks & Thresholds →
Statutory capital, clearing, margin & rate conventions.
Editorial Records
Authors & Review Records →
View named contributors where those records are available.
Complete Index
Master Research & Dossier Archive →
Browse all published briefings by topic pillar & date.
