# Price oracles

Stella Trade employs a robust, custom-built price oracle system designed to support the protocol's critical functionalities. The price oracle triggers the liquidation engine by calculating the mark price to determine when positions are eligible for liquidation.

Stella Trade's price feed system leverages external data from multiple high-volume exchanges, such as Binance, Coinbase, and OKX. Using a weighted median approach, the oracle aggregates and cross-references prices across these platforms to provide reliable and representative index and mark prices for supported trading pairs.

#### Exchange List & Assigned Weightage

| **EXCHANGE** | **TIER** | **WEIGHT** |
| ------------ | -------- | ---------- |
| Binance      | 1        | 3          |
| Coinbase     | 2        | 2          |
| Bybit        | 2        | 2          |
| OKX          | 2        | 2          |
| Kucoin       | 3        | 1          |
| Gate.io      | 3        | 1          |
| MEXC         | 3        | 1          |
| Kraken       | 3        | 1          |

#### Contingency plans

The protocol's price oracle is an off-chain mechanism built for low-latency performance, ensuring fast and reliable data without compromising security. In the event of an outage or failure of the primary oracle, Stella Trade has built-in contingency measures that involve a secondary on-chain oracle to maintain system integrity and avoid reliance on a single point of failure.

<br>


---

# 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.stellaxyz.io/stella-doc/price-oracles.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.
