logo
Polymarket Launches New Matching Engine Nex: What Changes Lie Ahead for Trading?
Millisecond-level speed and deterministic matching remove core barriers to automated trading.


Written by Eric, Foresight News


On the evening of December 2 Beijing Time, Josh Stevens, VP of Engineering at Polymarket, tweeted that Nex, the new matching engine rebuilt by Polymarket in Rust, will be deployed from 14:00 to 16:00 Beijing Time on December 14. After deployment, the platform will maintain a 5-minute close-only mode before officially resuming full trading.


On September 1 this year, Stevens vented his frustration with Polymarket’s legacy matching engine in a tweet. He noted the old framework was rife with technical debt; even as the team scaled throughput and speed several-fold on the existing codebase, fixes often introduced new bugs. Stevens concluded that this unmaintainable legacy mountain of code was not worth salvaging, and a full rewrite was the only solution.


Barely three months later, Polymarket’s engineering team has completed development of the new Rust-based Nex engine.


What problems does Nex solve?


According to Stevens, in internal sandbox testing, p99 order placement latency dropped 99.5% from 1,392 milliseconds to 6.8 milliseconds, while order cancellation latency also fell 99.5% from 716 milliseconds to 3.9 milliseconds, with even faster performance measured at p99.9.


Beyond speed gains, Nex delivers a 10x increase in throughput. In sandbox stress tests simulating 450 market makers and traders, a single user submitted 30,000 orders per second with near-zero change in latency. In addition, order matching is fully deterministic, eliminating the random latency spikes and race conditions common in the legacy system. WebSocket market data push latency has also been drastically improved, with p99 write latency dropping from tens of milliseconds to sub-millisecond levels.


The speed improvements are intuitive, but the core value lies in resolving random spikes and race condition issues.


Race conditions occur when the system cannot determine the correct processing priority for orders. The slow legacy system often struggled to differentiate between orders placed milliseconds apart, leading to issues such as canceled orders still being filled, or concurrent price updates creating erroneous system states. This ultimately leads to the non-deterministic matching noted above, where order matching outcomes can differ depending on the system’s current load.


This means the same action can sometimes run smoothly, and at other times cause 1-2 second lag: order cancellations may take effect immediately, or remain pending indefinitely. In short, traders cannot accurately predict the final outcome of their own actions.


In April this year, a crypto developer known by the X handle @as required. posted about their disappointment with Polymarket’s infrastructure. They noted Polymarket’s off-chain order book was slower than many on-chain order books, taking multiple seconds to place and confirm trades in speed-critical markets such as 5-minute price up/down prediction. They added that market makers had no priority for order cancellations, leaving them exposed to adverse selection, to the point that Polymarket’s market maker incentives could not even cover the inherent trading risks.



Beyond raw speed, the stability issues caused by random spikes are even more critical. On latency charts, normal latency appears as a relatively flat line, with occasional sudden, sharp upward spikes that quickly fall back to baseline. These spikes occur without warning or pattern, hence the name “random spikes”. This means the previously noted uncertain fill states and lag do not only appear during peak traffic, but can cause unexplained random delays at any time.


These issues may have had limited impact on casual retail traders in the past, but for market makers and professional news traders, even one unplanned event of this kind can erase the profits from 10 consecutive successful trades.


What new opportunities will Nex bring?


The most impactful change after Nex’s launch is that trading workflows previously forced to operate “with the brakes on” can finally run at their intended efficiency.


Market makers are the primary beneficiaries. Before Nex, Polymarket hosted a number of market makers, but as noted earlier, the platform’s market maker incentives often failed to cover their loss exposure: order cancellations often took hundreds of milliseconds, and random 1-2 second lag could hit at any time. To avoid getting filled on stale quotes, market makers had to widen their spreads, post shallower order books, or update quotes less frequently. Now that cancellations are reliably executed in single-digit milliseconds, market makers can update prices more frequently, tighten spreads, and post deeper liquidity.


To protect market makers in the past, Polymarket implemented roughly 150ms of latency for crypto-related markets, and taker-side latency of up to 1 second for some sports markets, giving makers time to react and reduce adverse selection from traders with faster information sources. Polymarket has noted it will evaluate whether to keep these risk-mitigating latency measures in place moving forward.


This is welcome news for markets offering 5-minute and 10-minute Bitcoin up/down prediction. With improved speed and deterministic trading, high-frequency market makers can treat these markets like derivatives contract markets, creating larger cross-market arbitrage opportunities while improving liquidity depth for regular traders.


Event-driven market trading will also operate more smoothly. In the past, when breaking news hit, the system often suffered random lag from sudden traffic spikes, leaving many traders who correctly anticipated price moves unable to get fills, or receiving highly unfavorable execution prices. Nex improves the stability of order placement and cancellation, while also drastically speeding up market data feeds, letting algorithmic strategies trade immediately on new signals without fear of “reacting correctly, but getting stuck on system lag”.


Multi-market arbitrage works the same way. Whether the opportunity comes from a sum of YES and NO outcomes across a single market falling below 1, or combinatorial opportunities across multiple related markets, the biggest historical risk was getting a fill on one market, while the paired market failed to execute due to latency or random spikes, leaving traders with unhedged exposure. With improved speed and determinism, scenarios where a profitable trade nearly succeeds only to turn into unidirectional exposure will become far less common, and traders can safely capture even small price discrepancies.


Similarly, cross-market arbitrage between prediction markets and other venues such as derivatives contracts, as well as AI-powered trading and news trading, will benefit from higher execution certainty. Of course, readers should not expect prediction markets to suddenly become a microsecond-level trading battlefield: most market information does not spread fast enough to justify that level of speed, and the platform’s existing taker delays are unlikely to be fully removed in the short term.


Assay.trade, a trading tool focused on prediction markets, noted in a post that once Polymarket’s speed improves, price discrepancies that were previously capturable due to the platform’s slow system will be arbitraged away faster by trading bots. Manual arbitrage will become more difficult, and professional automated strategies will hold a greater competitive edge. However, if hedging counterparties do not see matching speed improvements, the overall arbitrage experience will not become fully “risk-free at second-level latency”.


A faster engine will attract more professional capital, potentially narrowing spreads further and reducing the marginal edge gained purely from “being faster than others”. However, strategies that were hard to sustain in the past due to unreliable system performance can now be deployed at scale. This will improve overall market quality, create more room for market making and algorithmic trading strategies to thrive, and deliver the most tangible benefit for regular traders: more reliable fills and lower implicit trading costs.

OwnDueMULTIFASTPolymarket PLACEChangeLevelEVENAIX

LATEST NEWS

loading...
© 2025 Foresight News. All Rights Reserved.