# Oracle Price

## Price Oracles

Drake aggregates price feeds from multiple oracle networks to ensure accurate, reliable pricing across the platform.

### Oracle Sources

**Chainlink Data Streams**\
Low-latency price feeds with sub-second updates. Prices are stored off-chain in signed reports and verified on-chain through Chainlink's verification contract when needed for trades, liquidations, or position updates.

**Pyth Network**\
High-frequency price updates providing additional redundancy and sub-second market data.

**Future Integrations:** Redstone, Stork, and other providers for maximum redundancy.

### Price Aggregation

Drake combines multiple oracle sources through a simple process:

1. Fetch latest prices from all active sources
2. Normalize to common format (decimal/scaling adjustments)
3. Filter stale data (prices older than 60 seconds)
4. Remove invalid or zero values
5. Calculate simple average of valid prices
6. Apply aggregated price across the protocol

Off-chain operators continuously monitor oracle networks, detect price changes, bundle signed price data, and submit on-chain updates.

### Usage

Aggregated oracle prices power:

* AMM vault pricing
* Margin calculations
* Liquidation triggers
* Funding rate calculations
* Position valuation

### Key Benefits

**Low Latency** — Sub-second price updates ensure trades execute based on current market conditions, matching centralized exchange performance.

**Frontrunning Prevention** — Real-time data combined with cryptographic verification protects trades from manipulation common in decentralized environments.

**Decentralized Reliability** — Multiple independent oracle networks provide redundancy while maintaining transparency and avoiding single points of failure.

Drake's multi-oracle approach delivers centralized exchange speed with decentralized security and transparency.

<figure><img src="/files/DiP6Gp2AVHKM4770KQ7o" alt=""><figcaption></figcaption></figure>

reference: <https://docs.chain.link/data-streams>


---

# 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.drake.exchange/trading/oracle-price.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.
