Definition
A matching engine maintains the actionable state of an order book and decides how compatible orders execute. It processes events such as new orders, cancellations, and amendments in a defined sequence. The trading screen displays information, while the engine is responsible for the matching logic behind the market.
How It Works
An accepted incoming order is evaluated against available opposite-side orders and the applicable priority rules. The engine generates execution events and updates remaining quantities. If an order only partly fills, its remainder may rest on the book or be canceled depending on its instructions. Other systems handle functions such as authentication, risk checks, custody, and settlement.
Key Considerations
An engine cannot create counterparty liquidity merely by processing requests quickly. Performance claims about throughput do not alone describe end-to-end latency or behavior under congestion. Market rules, processing order, and recovery procedures matter for consistent results. A cancellation request also does not guarantee cancellation before a competing execution reaches the engine.