Skip to content
Terminal Ledger Desk
Directory

Mifid Rts6 Pretrade Kill Switch Controls

Gross vs Net Intraday Pre-Trade Credit Accounting: Open-Order Exposure & Cancel-Replace Inflation

Counting only filled trades toward intraday credit limits invites clearing insolvency; counting naive sums of bids and offers starves market makers. Learn exact worst-case directional and in-flight 35=G credit accounting.

By Marcus Thorne, CQFReview not recorded · Updated
Gross vs Net Intraday Pre-Trade Credit Accounting: Open-Order Exposure & Cancel-Replace Inflation — Terminal Ledger Desk 2026 quantitative & supervisory data card
Terminal Ledger Desk (MiFID II RTS 6, SEC Rule 15c3-5 Market Access & Inline Kill-Switch SLAs): Worst-case directional open-order math, 35=G envelope locking, and reduce-only gates.Source: Terminal Ledger Desk Institutional Research DeskLicense: CC-BY-4.0

Getting intraday pre-trade credit arithmetic wrong destroys a brokerage in one of two opposite ways: under-counting open unexecuted orders allows a market maker quoting $40 million across 50 instruments to get swept on every bid simultaneously during an FOMC shock (10x posted margin!), whereas over-counting two-sided quotes and in-flight OrderCancelReplaceRequest (35=G) updates falsely locks out profitable clients every afternoon. Mastering exact state-machine credit accounting is core to SEC Rule 15c3-5 and CFTC Reg 1.73.

Three Credit Aggregation Formulas: Pure Gross, Net-Position-Only & Worst-Case Directional#

Within our MiFID II RTS 6 & SEC 15c3-5 Architecture Hub and Unified Margin Clearing Engine, pre-trade gateways evaluate exposure at two hierarchy levels (Per-Symbol and Portfolio Aggregate):

  • Flawed Model A — Executed-Only (|Filled_Pos|): Ignores LeavesQty (Tag 151) on resting limit orders completely. Illegal under FINRA 15c3-5 examinations because 500 resting buy orders can fill in 200 microseconds before any post-trade monitor reacts!
  • Ultra-Conservative Model B — Naive Two-Sided Gross (|Filled| + Open_Buys + Open_Sells): Adds resting Bids AND resting Offers together on the same symbol. Safe for directional hedge funds, but punitive for a two-sided market maker quoting $5M Bid / $5M Ask on ES (a single market move cannot fill both +5M and -5M into a $10M directional position simultaneously!).
  • Institutional Standard Model C — Per-Symbol Worst-Case Directional Sum: For each symbol i, computes E_i = MAX( |Pos_i + OpenBuy_i|, |Pos_i - OpenSell_i| ), then sums Sum_i(E_i * Haircut_i) across all symbols! Notice how offsetting reduce-only orders (Pos = +$5M, OpenSell = $3M) properly do not inflate worst-case long risk (MAX(|+5|, |+5 - 3|) = $5M), while an over-hedging OpenSell = $12M flips risk to |+5 - 12| = $7M!
Order lifecycle credit reservation state machine from Outbound 35=D Reservation to Resting Open Exposure, In-Flight 35=G Envelope Max, Execution Fill Shift, and Terminal Release
Order lifecycle credit reservation state machine from Outbound 35=D Reservation to Resting Open Exposure, In-Flight 35=G Envelope Max, Execution Fill Shift, and Terminal ReleaseVerified Exhibit

The In-Flight 35=G (Cancel/Replace) Reservation Trap#

Suppose an algorithmic desk rests a 100-lot Buy limit (ClOrdID = A1) and sends OrderCancelReplaceRequest (35=G, OrigClOrdID = A1, ClOrdID = A2, OrderQty = 120, Price = +1 tick). During the 350 microseconds while A2 is Pending Replace (39=E) in flight to the exchange:

  • What if A1 (100 lots) was already filled at the matching engine 10 microseconds ago, and the exchange rejects or applies A2 depending on OrderQty semantics?
  • Under FIX Protocol Messaging Standard rules, Tag 38 (OrderQty) in 35=G specifies the new total chain quantity (CumQty + NewLeavesQty), so exposure during Pending Replace must reserve *`MAX(Old_Price OldRemaining, NewPrice * MAX(0, NewOrderQty - KnownCumQty))**—never Old + New (220 lots double-count), and never dropping Old before 39=5 (Replaced)` arrives!
Quantitative Distribution · Institutional State-Machine Action
Institutional State-Machine Action
01Client sends Cancel (35=F)Hold 100% of re…02Client sends Replace (35=G)Reserve MAX(Old…
FIX Lifecycle EventNaive (Buggy) Gateway ActionInstitutional State-Machine ActionFailure Prevented
Client sends Cancel (35=F)Immediately frees resting order credit on outbound wireHold 100% of reservation until exchange returns 39=4 (Canceled) or 39=2 (Filled)Prevents client sending Cancel + New 10x in flight when cancels lose race!
Client sends Replace (35=G)Adds full New_Qty on top of Old_Qty (200% usage)Reserve MAX(Old_Remaining_Notional, New_Remaining_Notional) until 39=5 or 434=2 (35=9)Eliminates false credit starvation during rapid quote-price sliding
Account hits 102% Credit CapBlanket-rejects all outbound 35=D messagesBlocks risk-increasing orders; allows verified Reduce-Only covers where `Open_Cover + Qty <=Pos`Prevents trapping bleeding positions unable to flatten during volatility!
Exchange TCP DisconnectsClears open-order table immediately on socket EOFKeep open-order credit locked until COD verified via Drop-Copy / Out-of-Band checkProtects against fills occurring inside COD grace window

Pre-Trade Credit State-Machine Transition Reference Table#

Exact credit reservation deltas across every outbound client request and inbound exchange ExecutionReport (35=8) state transition.

Formula or model from the articleNot independently verified
E_symbol_i = w_i * MAX( |Pos_i * P_mark_i + Sum_Open_Buys_i|, |Pos_i * P_mark_i - Sum_Open_Sells_i| )
  • TotalPortfolioCreditUsed = Sum{i = 1..N}( Esymboli ) + MAX( 0, -IntradayTotalPnL_USD )
  • Worked Reduce-Only Liquidation Gate Verification (Symbol = NVDA, Executed Pos = -4,000 Shares Short):
  • Resting Open Buy Limit Orders Already on Venue = 2,500 Shares
  • Trader Submits Emergency Buy Order = 2,000 Shares
  • Check: 2,500 + 2,000 = 4,500 > |-4,000| -> REJECT! (Would flip +500 shares Net Long!)
  • Max Allowed Reduce-Only Clip = |-4,000| - 2,500 = 1,500 Shares -> PASS!

Allowing Risk-Reducing Liquidation Orders When Credit Is 100% Breached#

One of the deadliest coding bugs in homegrown risk gateways occurs when an intraday market rally pushes a short portfolio past 100% of its $20M gross mark-to-market limit—and the risk gateway blocks the trader Buy-to-Cover orders because Current_Exposure > Limit!

Compliant Pre-Trade Risk Control Standard engines implement a dedicated Reduce-Only Liquidation Bypass invariant: an inbound order on symbol i is permitted even during a credit freeze if and only if:

  1. Its side strictly opposes Executed_Position_i (Buy when Pos_i < 0, Sell when Pos_i > 0), AND
  2. Existing_Same_Side_Open_Orders_i + New_Order_Qty_i <= |Executed_Position_i|! (Checking existing open reduce orders prevents submitting ten 100-lot Buy-to-Cover orders against a -100-lot short and flipping +900 lots net long!).
Comparison of calculated credit utilization for a two-sided market maker ($5M long filled + $8M resting bids + $10M resting asks) across four accounting models
Comparison of calculated credit utilization for a two-sided market maker ($5M long filled + $8M resting bids + $10M resting asks) across four accounting modelsVerified Exhibit

Multi-Currency FX Haircuts & SPAN / VaR Margin Approximation in Hardware#

Because full Monte Carlo or CME SPAN array convolutions take milliseconds, inline cut-through FPGAs store pre-scaled Per-Unit Risk Weights (w_i in USD) inside BRAM—updated every 30 seconds by an asynchronous risk server running full portfolio covariance and FX spot cross-rates (EURUSD, USDJPY plus a 2% FX volatility buffer).

Compute exact parametric and historical Expected Shortfall weights for w_i in our Terminal Margin VaR & ES Calculator and size multi-strategy capital envelopes in the Algorithmic Kelly Allocation Calculator.

Frequently asked questions

Why must credit reservation never be released when the client sends OrderCancelRequest (35=F)?

In fast markets, 40% to 70% of cancel requests aimed at near-touch quotes arrive Too Late To Cancel (returning OrderCancelReject 35=9 because the resting order already filled). Releasing credit on outbound 35=F would allow an algorithm to cycle New -> Cancel -> New ten times in 1 millisecond and accumulate 10x its capital limit!

Can portfolio-level cross-margining (e.g., Long ES vs Short SPY) be used inside a 310ns FPGA gate?

Pure hardware Layer-1/2 FPGAs typically enforce fast additive worst-case symbol weights (conservatively ignoring fragile cross-asset correlations during tail breaks), while a companion microsecond C++ / Drop-Copy risk server periodically recalculates SPAN/TIMS correlation offsets and refreshes the FPGA net headroom register.

How does intraday realized and unrealized PnL interact with pre-trade gross credit caps?

Best-practice gateways pair Exposure Caps with an Intraday Max Drawdown ("Stop-Loss") Gate: any net mark-to-market loss (Realized + Unrealized < -$500k) directly reduces available credit dollar-for-dollar and triggers an automatic Soft Freeze + Risk Alert once 80% and 100% of daily loss limits breach.

How are multi-leg futures calendar spreads or options iron condors credited pre-trade?

When submitted as native exchange-recognized spread instruments (e.g., CME Globex ES Calendar Spread or Cboe Complex Order Book), the venue guarantees atomic legged execution (zero leg risk), allowing the gateway to apply the spread-specific margin weight rather than summing outright notional legs.

Publication record

Published
13 November 2026
Updated
14 November 2026
Author
Marcus Thorne, CQF
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

Open Attribution License (CC BY 4.0)

Standard academic & institutional research paper citation format.

Marcus Thorne, CQF. (2026, November 14). Gross vs Net Intraday Pre-Trade Credit Accounting: Open-Order Exposure & Cancel-Replace Inflation. Terminal Ledger Desk. https://terminalledgerdesk.com/reports/gross-vs-net-intraday-credit-exposure-accounting-pending-order-var

Regulatory Directory Cross-Reference

Referenced Institutions & Regulatory Registries

Referenced Supervisory Authorities

Explore Mifid Rts6 Pretrade Kill Switch Controls Hub (20) →

Terminal Ledger Desk Data, Benchmarks & Contributor Records

Gross vs Net Intraday Pre-Trade Credit & Open-Order Math | Terminal Ledger Desk