# Oracle

DeltaTrade product is using the oracle of Pyth Network.&#x20;

DeltaTrade uses Pyth Network price feed to verify whether the price when the user signed is consistent with the price when it was uploaded to the chain when creating the Bot. If the slippage limit is exceeded, the Trading Vault creation will fail.

DeltaTrade is also using Pyth Network service for two other features:

* Allows users to create unactivated Trading Vault and then activate them when the price reaches the user's expectation.
* Allows users to set up take-profit and stop-loss Trading Vault. When the price reaches the take-profit and stop-loss price, anyone can help users close the Trading Vault.

DeltaTrade use Pyth Network service on both testnet and mainnet product.

#### Pyth Oracle <a href="#pyth-oracle" id="pyth-oracle"></a>

The [Pyth Network](https://pyth.network/) is a first-party financial data oracle network that delivers low-latency price data for various assets to blockchains securely.

The Pyth protocol aggregates the data providers' inputs to produce a single aggregate price and confidence interval every 400ms for each price feed. This aggregation mechanism lives on an application-specific blockchain called Pythnet.

Pyth Network introduces a unique architecture called the Pull Oracle. With the Pull Oracle design, data users can “pull” or request a price update from the Pyth protocol when needed.

Learn more, refer to the [Pyth documentation](https://docs.pyth.network/home).


---

# 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.deltatrade.ai/technical-information/security/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.
