# • Logic Flow

Price Aggregation (Liquidity Aggregator):&#x20;

aggregated\_price = Aggregator.aggregatePrices(exchanges)&#x20;

aggregated\_price represents the final aggregated price for the desired token pair.&#x20;

Aggregator is the component responsible for aggregating prices. exchanges is a list of exchanges to consider, such as Uniswap, 1inch, 0x, Sushiswap, Pancakeswap.&#x20;

The Aggregator component in the liquidity aggregator exchange fetches prices from multiple decentralized exchanges (Uniswap, 1inch, 0x, Sushiswap, Pancakeswap) for a specific token pair. It combines and processes these prices to calculate the aggregated price, providing users with the best available rate across the integrated exchanges. This approach ensures users can access the most favorable rates and minimize slippage when trading their assets, enhancing liquidity management and trading experiences.


---

# 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://detatokens-organization.gitbook.io/deta-finance-documentation/uniflow/logic-flow.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.
