> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# Matching Engine & Core Modules

A white-label exchange requires more than a frontend shell. The user experience depends on reliable core modules behind trading, accounts, risk, and settlement.

<h2 id="core-modules">
  Core modules
</h2>

| Module                       | Role                                                                           |
| ---------------------------- | ------------------------------------------------------------------------------ |
| Matching and order lifecycle | Handles order submission, matching state, cancellation, and execution records. |
| Account and position system  | Maintains balances, margin state, positions, and trading availability.         |
| Risk controls                | Coordinates leverage, margin, liquidation, and abnormal market behavior.       |
| Market data                  | Distributes prices, depth, trades, and chart data to trading interfaces.       |
| Settlement and records       | Keeps trading history, balance changes, and operational records aligned.       |

<h2 id="documentation-path">
  Documentation path
</h2>

Start with trading rules before API integration. Product, operations, and development teams should share the same understanding of order types, margin behavior, fees, and liquidation logic.

Review supported order behavior.

Understand margin requirements.

Connect backend workflows.