# Price Oracles

For accurate trading conditions and reliable price data, the **Upscale** platform uses two leading oracles: [Stork](https://docs.stork.network/) and [Pyth Network](https://pyth.network/).

***

## ⚡ Stork

**Stork** is a next-generation oracle developed for ultra-low latency. It updates price data at intervals of less than 1 millisecond, collecting information from the largest centralized exchanges. All data is protected by a digital signature and transmitted to TON via websockets.

**Stork advantages:**

* 🕒 Ultra-low latency — instant data updates.
* 📶 Efficient aggregation — prices are collected off-chain, minimizing delays.
* 🌐 Broad coverage — data from top exchanges.
* 🧪 Optimized for derivatives — ideal for futures and high-frequency trading.

Learn more: [Stork Documentation](https://docs.stork.network/stork-for-real-time/what-is-stork-for-real-time).

***

## 🔗 Pyth Network

**Pyth Network** aggregates data from 65+ sources, including crypto exchanges as well as stock and forex markets. The oracle runs on the **Solana** infrastructure and transmits data using the [Wormhole](https://wormhole.com/) protocol for secure cross-chain integration.

**Pyth advantages:**

* 📊 Wide range of sources — pricing based on various markets.
* ⚙️ High update frequency — up to 700+ updates per second.
* 🔐 Cross-chain compatibility — data delivery via Wormhole.

Learn more: [Pyth Documentation](https://pyth.network/).

***

## 🧮 How Upscale Prices Are Determined

The **Upscale** platform uses a single price, based on aggregated liquidity provided by Stork and Pyth oracles:

* **Index Price** — calculated from aggregated data including trading volumes on various exchanges. Anomalies are discarded to increase accuracy.
* **Market Price** — Market Price always matches Index Price and is provided by the oracle. Trades execute at a price that reflects the combined liquidity of major CEXs, eliminating the impact of large orders and ensuring fair outcomes for traders.

***

### 🛠️ Aggregation and Execution Mechanics

* Liquidity aggregation considers the order book depth on major CEXs and long/short orientation.
* One chart, one price: users see a single price chart with no hidden slippage, and never encounter two different price types.
* Minimal slippage: trades execute at a fair price, closely aligned with the real market rate.
* Closing positions — no spread: traders receive exactly the price they see on the screen, with minimal latency for transactions.

***

## 🌟 Key Upscale Oracle Advantages

* Transparency — no hidden pricing mechanisms.
* Fairness — execution as close as possible to the real market price.
* Convenience — traders always see one price and never face confusion between Market and Index Price.

*The Upscale platform utilizes aggregated liquidity to guarantee the best conditions for traders and maximum clarity in price formation.*
