# Off-chain Orderbook and Risk Engine

Aevo operates an off-chain order-book where maker and taker orders are posted and matched. Once a maker and taker order gets matched, only then do they get posted on Aevo’s smart contracts, which are deployed on the L2 roll-up.

Before an order is created and posted to the order-book, it is evaluated through the off-chain risk engine. The risk engine checks margin requirements for that account (either Standard Margin or Portfolio Margin) to determine if it has enough margin to create that order.

<figure><img src="/files/1IV0m5smfCV5cY7KyA1F" alt=""><figcaption></figcaption></figure>


---

# 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.aevo.xyz/aevo-products/aevo-exchange/technical-architecture/exchange-structure/off-chain-orderbook-and-risk-engine.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.
