# Hybrid Execution Model (CLOB / AMM)

Nunchi's matching engine is a Hybrid Execution Model, engineered to combine the performance of a CLOB with the constant, on-chain liquidity of an AMM, all settled atomically within a single transaction.

1. Primary Venue: The Onchain CLOB: This is the primary matching engine where professional market makers place limit orders. It is designed for low latency and provides complete transparency. Makers are incentivized with significant fee rebates.
2. The Binned AMM: Any portion of a market order that cannot be filled by the CLOB automatically "falls back" to our integrated AMM. We use a "Liquidity Book" model, where passive LPs deposit assets into discrete price "bins." This concentrates liquidity where it's needed most. An Automated Bin Manager rebalances these bins to track the oracle price, providing a "set-and-forget" experience for LPs. Crucially, the AMM is designed to never undercut the best price on the CLOB, protecting active makers. The Binned AMM is not funded by separate LPs. Instead, its liquidity is programmatically supplied by the Junior (Stablecoin) Tranche of the central Nunchi LP Vault, under the direction of the Automated Bin Manager. Each time liquidity moves to a bin, a proxy order is submitted to the CLOB, which allows for the AMM and the CLOB to seamlessly integrate.&#x20;
3. The Final Defense- the JIT Liquidity Auction: In rare cases of extreme volatility where both the CLOB and AMM are insufficient, a Just-in-Time (JIT) Liquidity Auction is triggered. This on-chain flash auction allows professional makers to compete to fill the order at a better price, intercepting "toxic flow" before it can harm passive LPs.


---

# 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.nunchi.trade/research/nunchi-engine-nclob-core-concepts/hybrid-execution-model-clob-amm.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.
