> For the complete documentation index, see [llms.txt](https://qi-blockchain.gitbook.io/qie-oracle/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qi-blockchain.gitbook.io/qie-oracle/how-qie-oracle-works/aggregation-and-validation.md).

# 🧮 Aggregation and Validation

To ensure **reliability**, **accuracy**, and **resistance to manipulation**, QIE Oracle implements a robust **data aggregation mechanism**.

#### 🔗 Aggregation Process

1. **Multi-source data collection**\
   Price data is fetched simultaneously from multiple trusted sources.
2. **Aggregation logic**\
   A **median** or **weighted average** is calculated to determine the final price value.
3. **Outlier detection & filtering**\
   Anomalous or outlier values are automatically identified and excluded from the final calculation.

***

#### ✅ Why This Matters

This aggregation mechanism ensures that:

* A single faulty or malicious data source **cannot compromise** the overall system.
* The Oracle publishes a **consensus-based price** that accurately reflects real market conditions.
* The resulting data is **more stable**, **trustworthy**, and **manipulation-resistant**, especially during high volatility.
