# What is the Nekuti Matching Engine?

The Nekuti Matching Engine is a high-performance Central Limit Order Book (CLOB) spot and derivatives matching engine that provides:

- **Multi-Asset Support**: Spot and futures contracts (inverse, perpetual, quanto)
- **Advanced Order Types**: Market, limit, stop, contingent, hidden, iceberg, and more
- **Cross-Margin Trading**: Comprehensive margin management and liquidation workflows
- **Amplified Liquidity**: Multi-way matching across instruments makes markets deeper and automatically bootstraps liquidity on new derivatives contracts [!badge variant="success" text="Nekuti Exclusive"]
- **Atomic Stops and Contingents**: Stops and contingent orders execute atomically within the engine, minimizing slippage [!badge variant="success" text="Nekuti Exclusive"]
- **Atomic Margin and Liquidation**: Margin checks and liquidations execute atomically within the engine, eliminating race conditions and ensuring exchange safety [!badge variant="success" text="Nekuti Exclusive"]
- **Auto Deleveraging**: Sophisticated and efficient ADL implementation ensures exchange solvency and preserves position integrity [!badge variant="success" text="Nekuti Exclusive"]
- **High Performance**: Processes over 1 million orders per second with sub-millisecond latency at P99.5 [!badge variant="success" text="Nekuti Exclusive"] 
- **Deterministic Execution**: Reliable, repeatable outcomes with full state recovery [!badge variant="success" text="Nekuti Exclusive"]
- **Industry-Standard APIs**: RESTful and WebSocket APIs for seamless integration
- **High Availability**: Low and zero-downtime releases

# Architecture

The Nekuti Matching Engine is a sequencer-based, event-sourced Java application, which uses periodic snapshotting to optimize for rapid restart. It exposes REST and WebSockets streaming APIs for both user-facing components and administrative control.

![](architecture.png)
![](latency.png)

# How to use this Documentation

* The navigation bars at the bottom of each page will lead you through the documentation in a natural, linear progression. This is the best choice for integrators who are just getting started learning about the engine. 
* To jump directly to a particular topic, navigate using the sidebar to the left, or use the search box at the top right.
