# Oracles and Data Feeds

### **Overview**

Yei Finance employs a comprehensive price module system that integrates multiple oracle providers. API3 serves as the primary oracle, while Pyth and Redstone act as backup solutions. Oracles are fundamental to decentralized finance, supplying critical real-world data like asset market prices to the blockchain. Accurate and reliable data feeds are essential for fair collateral valuation, effective loan management, and timely liquidations.

### **Multi-Oracle Strategy**

To minimize the risk of price manipulation in lending protocols, we implement a multi-oracle integration strategy. By leveraging multiple oracle sources, we ensure the continuity and reliability of price feeds while effectively preventing anomalies.

We choose API3 as our primary oracle for providing the main data source, while additional oracles offer supplementary validation.

***

### **Oracle Providers**

#### **API3**

API3 is a top-tier oracle service offering decentralized APIs (dAPIs) that source data directly from providers, eliminating third-party intermediaries. This direct approach enhances the reliability and transparency of data feeds, contributing to the overall safety of the DeFi ecosystem.

#### **Pyth Network**

Pyth Network is an oracle protocol that bridges market data providers with applications across various blockchains. With contributions from over 100 first-party publishers, including major exchanges and market makers, Pyth offers reliable market data. It secures over 350 protocols across more than 55 blockchains.

#### **Redstone**

Redstone provides a modular oracle service, delivering frequent, reliable, and diverse data feeds. Yei Finance utilizes Redstone’s Classic model, which pushes data into on-chain storage via a relayer under specified conditions, such as heartbeat intervals and deviation thresholds. RedStone USDT and USDC push feeds are used as primary oracle for these assets.


---

# 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.yei.finance/products/yeilend/mechanism/oracles-and-data-feeds.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.
