> For the complete documentation index, see [llms.txt](https://docs.jayx.com/jayx-docs-n8rfmgwto77q5ila/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jayx.com/jayx-docs-n8rfmgwto77q5ila/solutions/dapp/exchange-nodes/oracle.md).

# Oracle

Price feeds are crucial within the financial markets, as they not only ensure that assets are accurately valued within a platform, triggering liquidations or stop-loss actions, but also enable frictionless value exchange. Conversely, price manipulation can have negative impacts on the market, including malicious arbitrage transactions, malicious liquidations, and stablecoin de-pegging, all of which sacrifice user interests for profit.

Therefore, within the JayX platform, we employ two types of price feeds to ensure the accuracy and reliability of prices: Index Price and Oracle Price.

### Index Price

The Index Price is calculated based on the weighted trading volume and spot prices from several major exchanges, and it is frequently updated within short intervals. It is used for funding rate calculations, the calculation of unrealized profit and loss (PnL), or the triggering of conditional orders.

### Oracle Price

The Oracle Price is primarily used for triggering liquidations and ensuring that user orders do not deviate from the market price. Typically, the Index Price is a component of the Oracle Price.&#x20;

To reduce the risk of price manipulation, decentralized price feeds are used as the price input function within our nodes, with sources such as Chainlink, Pyth Network or Stork Network.&#x20;

Spot transactions on the order book are less susceptible to manipulation as they are conducted at prices agreed upon by buyers and sellers. However, the risk of price manipulation may increase when AMMs are used to fulfill orders that have not been fully matched due to a lack of liquidity. In these instances, utilizing an Oracle Price can effectively protect against potential malicious arbitrage attempts targeting these orders.&#x20;

For derivatives or contracts trading where leverage is used and transactions are often internal to the platform, the implementation of an Oracle Price feed that draws from various trusted sources enhances trading confidence by providing a more robust and manipulation-resistant pricing mechanism.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.jayx.com/jayx-docs-n8rfmgwto77q5ila/solutions/dapp/exchange-nodes/oracle.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.
