A Midpoint Peg is a non-displayed, exchange-held order that continuously recalculates its limit price to equal the exact midpoint between the prevailing National Best Bid and Offer (NBBO). Unlike static limit orders, it dynamically floats with the quote, ensuring the order always rests precisely at the spread's center to attract contra-side liquidity while avoiding the cost of crossing the spread.
Glossary
Midpoint Peg

What is Midpoint Peg?
A non-displayed order type that automatically adjusts its limit price to remain pegged to the midpoint of the National Best Bid and Offer (NBBO), seeking passive execution at the spread's center.
This order type is a core tool in optimal execution algorithms for minimizing market impact. By remaining hidden and pegged, it avoids signaling urgency to the market. Execution occurs only when a willing counterparty accepts the midpoint price, making it ideal for institutional traders seeking to passively source block liquidity in dark pools and lit exchanges without incurring effective spread costs.
Core Characteristics
The defining structural and operational features that distinguish a Midpoint Peg order from other non-displayed liquidity-seeking order types.
Passive Price Formation
The limit price is not static; it is a derived value continuously recalculated as the arithmetic mean of the National Best Bid and Offer (NBBO). The order's price floats dynamically with the market, always resting exactly at the half-tick between the protected bid and offer. This ensures the order never crosses the spread to demand liquidity, functioning purely as a passive liquidity provider.
Non-Displayed Liquidity
Midpoint Peg orders are a subset of dark liquidity. The order's full size and price are never broadcast to the public quote stream. This opacity is critical for institutional traders seeking to execute large blocks without signaling their intentions to predatory algorithms. The order resides in a broker's internal matching engine or a dark pool, interacting only with contra-side flow that explicitly seeks midpoint execution.
Spread Capture Economics
By executing at the midpoint, both the buyer and seller implicitly split the bid-ask spread. The buyer pays half a spread less than the offer, and the seller receives half a spread more than the bid. This creates a cost-saving arbitrage against aggressive orders that cross the spread, effectively monetizing the patience of the passive trader.
Conditional Execution Logic
Execution is not guaranteed. The order only fills if a contra-party is willing to trade at the exact midpoint. In a locked market (bid equals offer), the midpoint equals the locked price, and the order may interact with displayed liquidity. In a crossed market, the peg logic typically suspends or rejects the order to prevent erroneous executions at invalid prices.
Minimum Quantity Constraints
To prevent information leakage via small, probing trades, midpoint pegs often enforce a Minimum Acceptable Quantity (MAQ). The order will only interact with contra-side orders that meet a specified minimum size. This filters out retail noise and ensures that fills represent genuine institutional block interest, preserving the anonymity of the large parent order.
Regulatory Classification
Under Regulation NMS, a Midpoint Peg qualifies for an exception from the Order Protection Rule (Rule 611) because it provides meaningful price improvement relative to the NBBO. By executing at a price strictly better than the protected quotes, it satisfies the regulatory requirements for trading through inferior prices, allowing it to operate efficiently in the national market system.
Frequently Asked Questions
Clarifying the operational logic and strategic application of midpoint peg orders in modern electronic markets.
A Midpoint Peg is a non-displayed, passive order type that automatically adjusts its limit price to remain pegged to the exact midpoint of the National Best Bid and Offer (NBBO). It seeks execution at the spread's center rather than at the aggressive bid or offer. The mechanism works by continuously recalculating the limit price as (Best Bid + Best Offer) / 2 in real-time. When the NBBO changes due to quote updates, the order's price automatically floats to the new midpoint without manual intervention. This ensures the order always rests at the most passive price that still offers a potential match, avoiding the full spread cost. Because the order is non-displayed, it does not contribute to the public quote, hiding the trading intention from the broader market and preventing information leakage.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Key concepts that interact with midpoint peg orders in the algorithmic execution landscape.
National Best Bid and Offer (NBBO)
The consolidated quote representing the highest displayed bid and lowest displayed offer across all US exchanges, mandated by Regulation NMS. The midpoint peg continuously references the NBBO to calculate its limit price as (NBBO Bid + NBBO Ask) / 2. Any change in the NBBO triggers an immediate re-pegging of the order, ensuring the price always reflects the current market center.
Adverse Selection Shield
A predictive logic layer that uses microstructure signals to detect toxic order flow and temporarily pause execution. When a midpoint peg order rests at the spread center, it is vulnerable to being picked off by informed traders who anticipate directional price moves. The shield monitors metrics like VPIN and quote stuffing to cancel the peg before adverse fills occur.
Effective Spread
A transaction cost metric calculated as 2 * |Trade Price - Midpoint at Execution|. A midpoint peg order that executes exactly at the NBBO midpoint achieves an effective spread of zero, representing perfect execution with no immediacy cost. This makes the peg a benchmark for measuring the quality of other execution strategies against the round-trip cost of liquidity.
Smart Order Router (SOR)
A software layer that dynamically scans fragmented liquidity across lit exchanges, dark pools, and ATSs. When a midpoint peg order cannot fill on the primary venue, the SOR can route child orders to alternative trading systems that support midpoint matching, such as Nasdaq Midpoint Extended Life or IEX, seeking hidden liquidity at the spread center.
Queue Position Estimation
An inference technique that uses order book snapshots and trade prints to estimate where a resting limit order sits in the price-time priority queue. For midpoint peg orders, which are typically non-displayed, queue position is critical because the order is invisible to other participants. Accurate estimation informs the likelihood of execution when the spread narrows to one tick.
Market Impact Decay
The rate at which the temporary price dislocation caused by a trade dissipates as the limit order book replenishes. Midpoint peg orders contribute minimal market impact because they are passive and non-displayed. Understanding decay dynamics helps execution algorithms determine the optimal time horizon for re-entering the market after a peg order is cancelled or modified.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us