> For the complete documentation index, see [llms.txt](https://docs.turbine.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.turbine.exchange/features/batching-solver.md).

# Batching Solver

Turbine has a built-in solver that settles orders in batches.

### Batches over Turbine + Ethereum Liquidity

Every batch includes:

* [**Turbine Orders**](/trading/readme/auto-mode.md): Turbine orders that track the market.
* [**Turbine Pools**](/features/market-tracking-lp.md): Turbine pools that track the market.
* **On-chain liquidity:** All AMM pools and PMM quotes from Tycho.

### Limit Order vs. Spread Order Batching

**Limit Order Batching**: In limit order markets, you only match if an opposite trade arrives before the market moves, which rarely happens. So you usually get stuck or overpay; only when the market is less volatile do you settle at market rate.

<figure><img src="/files/I6DA3WxtQqNDIr6LevEu" alt=""><figcaption><p>Limit Order Batching -> Few P2P Trades</p></figcaption></figure>

**Spread Order Batching:** In Turbine, orders and pools follow the market price. Orders match peer-to-peer, *no matter where the market moves***.** The longer an order stays in Turbine, the higher the chance of settling peer-to-peer. As a result, CoWs are the default, and orders rarely get stuck. Worst case, you pay market rate (AMM router price).

<figure><img src="/files/rPaFzjhGl0BESB26pSb8" alt=""><figcaption><p>Spread Order Batching -> Many P2P Trades</p></figcaption></figure>

<table><thead><tr><th width="219.078125"></th><th width="287.9921875">Limit Order Markets</th><th>Spread Order Market</th></tr></thead><tbody><tr><td>⛔️ <strong>Stuck Orders</strong></td><td>A lot 😔</td><td>Rarely ☺️</td></tr><tr><td>🤕 <strong>Paid Too Much</strong></td><td>A lot 😔</td><td>Rarely ☺️</td></tr><tr><td>🤝 <strong>P2P Trade</strong></td><td>Rarely 😔</td><td><strong>A lot</strong> ☺️</td></tr><tr><td>✅ <strong>Market Rate</strong></td><td>Rarely 😔</td><td>Sometimes</td></tr></tbody></table>

### Fair Settlement

In Turbine, all orders for the same pair in the same batch clear at the same **uniform clearing price**.

### Default = Market Rate

Because Turbine includes all on-chain liquidity (via [Fynd](https://docs.fynd.xyz/get-started/quickstart)), the worst price you settle at is what you'd get from optimally routing across all on-chain liquidity.

Peer-to-peer trades and Turbine LP pools give you the surplus above the AMM routes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.turbine.exchange/features/batching-solver.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.
