# Router Mechanism

Kriya router is a multi-protocol, multi-path router that leverages Sui's PTB (programmable txn blocks) to aggregate liquidity from all sources to execute trades and find the best price for traders.

These sources are -&#x20;

1. Kriya CLMM, AMM pools
2. Deepbook
3. Other protocols integrated via Hop and AF Routers

<figure><img src="/files/dVi2iCeQGj1AGdE6zZkq" alt=""><figcaption><p>Kriya Router HLD</p></figcaption></figure>

The GetRoute function uses the [Pyth](https://pyth.network/) Oracle to determine the deviation of each source from the benchmark. Sources with high deviation are excluded from the route.


---

# 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.kriya.finance/kriya-swap/swap-architecture/router-mechanism.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.
