The millisecond-level speed and deterministic matching have cleared the obstacles to automated trading.
Written by: Eric, Foresight News
On the evening of December 2nd, Beijing time, Polymarket's Vice President of Engineering Josh Stevens tweeted that Polymarket’s newly rewritten matching engine Nex in Rust will be deployed from 14:00 to 16:00 Beijing time on December 14th. After the deployment is completed, there will be a 5-minute liquidation-only mode, after which trading will officially open.
On September 1st this year, Josh Stevens tweeted his grievances about Polymarket's old matching engine. He stated that the old framework was full of technical debt, and although they had made several improvements in scale and speed on the original basis, it was still futile, often fixing one bug only to cause another. Josh Stevens indicated that this "crap code" was beyond saving and could only be rewritten.
In just 3 months, Polymarket's engineering team completed the development of the new Rust-based engine Nex.
What problems does Nex solve?
According to Josh Stevens, in internal sandbox testing, the p99 version's order placement time was reduced by 99.5% from 1392 milliseconds to 6.8 milliseconds, and cancellation time was similarly reduced by 99.5% from 716 milliseconds to 3.9 milliseconds, with even faster speeds in the p99.9 version.
Beyond speed, Nex further increased throughput by 10 times. In stress tests with 450 market makers and traders in the sandbox, someone submitted 30,000 orders per second with virtually unchanged latency. Additionally, order matching is fully deterministic, eliminating the random spikes and race conditions of the old system; WebSocket market data push has also significantly accelerated, with p99 version write latency dropping from tens of milliseconds to sub-millisecond levels.
The increase in speed is easy to understand, but the key issue is the problem of random spikes and race conditions.
The essence of the race condition issue is that the system does not know which order to process first. Due to slow speeds, the old system might struggle to distinguish two orders with millisecond-level differences, leading to issues such as an order being filled even though it was canceled, or errors in status due to two orders being priced simultaneously. This resulted in the aforementioned non-deterministic matching, meaning that the matching results for orders could vary under different loads.
This caused the same operation to sometimes be smooth, while at other times it could stall for 1 to 2 seconds; cancellations would sometimes take effect immediately while other times still remained, leaving traders unable to accurately predict the outcomes of their actions.
A crypto developer known as X, who posted earlier this April, expressed his disappointment with Polymarket's infrastructure. He mentioned that Polymarket's off-chain order book was actually slower than many on-chain order books, requiring several seconds to place and confirm trades in a market where speed is crucial for predicting price movements over 5 minutes. Additionally, market makers had no priority when canceling orders and could only wait to be reverse-selected, and even the maker rewards provided by Polymarket failed to cover the risks.

Besides speed issues, the stability problems caused by random spikes are even more fatal. Random spikes refer to sudden, high peaks that appear on a delay graph, where the normal delay is a relatively smooth line that occasionally spikes up and then drops back down. These spikes appear randomly, hence the term random spikes. In other words, the previously mentioned uncertainty of trade execution and stalling phenomena do not only occur during peak periods but can occur randomly with inexplicable delays.
In the past, these issues might not have greatly affected ordinary players and traders, but for market makers and other professional traders, a single instance could undermine the success of their previous 10 trades.
What new opportunities will Nex bring?
After Nex goes live, the biggest change is that trading, which was previously "brake-enabled," can finally run normally.
The biggest beneficiaries will be the market makers. Before Nex, there were many market makers on Polymarket, but as mentioned earlier, the maker rewards provided by Polymarket often failed to cover the losses of the market makers: cancellations frequently took several hundred milliseconds, and if luck was poor, there could even be a sudden stall of one or two seconds. To avoid having outdated quotes being swept away, market makers could only place wider, shallower quotes or simply update less frequently. Now that cancellations are stabilized to single-digit milliseconds, they can adjust prices more frequently, take spreads tighter, and place deeper quotes.
Previously, to protect market makers, Polymarket set about a 150ms delay on crypto-related markets, with some sports markets even reaching about 1 second of taker delay, allowing the quoting side time to react and reducing the reverse selection risk of being swept by "faster information sources." Polymarket has also stated that it will decide whether to continue maintaining this risk-reducing delay based on future conditions.
This is good news for markets speculating on Bitcoin price movements over 5 to 10 minutes; with good speed and trading certainty, high-frequency market makers can treat these markets as contract markets, increasing the opportunities for cross-market arbitrage and simultaneously improving the trading depth for ordinary traders.
Moreover, event-driven market trading will also be smoother. Previously, when news broke, the system could likely experience random stalls due to instantaneous traffic peaks, causing many traders to make correct trades but resulting in failures to execute or execution at poor prices. Nex improves the stability of order placements and cancellations, while market data pushes are significantly faster, allowing algorithms to act confidently immediately after signals appear without worrying about "reacting correctly while the system stalls."
Cross-market arbitrage works similarly. Whether the overall YES+NO sum in the same market is below 1 or there are combinations of opportunities across several related markets, the biggest risk previously was that one market might execute while another might lag due to delays or random spikes, exposing an open position. Now that speed and certainty have improved, the situation of "missing a profit that was almost guaranteed and ending up with a unilateral exposure" will occur much less frequently, allowing for more confident captures of small price differentials.
Similarly, arbitrage across prediction markets and contracts, as well as AI trading, news trading, and more, will have higher certainty. Of course, one shouldn't expect prediction markets to suddenly become microsecond-level battlegrounds. Most markets do not inherently have that fast information dissemination speed, and the platform's existing taker delays may not be entirely eliminated in the short term.
Trading tool Assay.trade, focused on prediction markets, stated that after Polymarket speeds up, price differentials that could previously be captured through "slow" tactics would be closed by bots more quickly. Manual arbitrage will become more difficult, favoring professional automation. However, if the hedging side does not improve its speed, the overall arbitrage experience will not transform into "second-level risk-free."
A faster engine will attract more professional funds, potentially narrowing price differentials further, as the marginal advantage of merely being "faster than others" will diminish. Still, what was previously difficult to sustain due to system unreliability can now be done under better conditions, improving market quality, expanding the survival space for market-making and algorithms, and providing ordinary traders with a more intuitive feeling of more stable transactions and lower implicit costs.
免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到[email protected],本平台相关工作人员将会进行核查。



