# Technical Architecture Layers

**Layer 1: Order Ingestion**

* Privacy-preserving submission
* Commitment generation
* Encrypted order storage

**Layer 2: Batch Management**

* Time-based batch windows
* Order aggregation
* Sealed order accumulation

**Layer 3: Matching Engine**

* Distributed matching process
* Uniform price calculation
* Surplus maximization

**Layer 4: Settlement**

* On-chain state updates or verifiable commitments
* Position adjustments
* Funding payment accrual
* PnL realization

**Layer 5: Verification**

* Proof generation
* Receipt publishing
* Public auditability


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.opaldex.com/protocol-overview/technical-architecture-layers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
