# Oracle - Pyth

### Real-Time Price Fetching and Option Pricing

#### Pyth Oracle Integration:

Jasper Vault retrieves the current asset prices from Pyth Oracle using the API endpoint: <https://hermes.pyth.network/api/latest_price_feeds>. Pyth API provides real-time market prices essential for accurate option valuation.

#### Pricing Model Integration:

With the latest market prices obtained from Pyth Oracle, Jasper Vault then applies the pricing models to calculate fair option prices.

#### Order Placement:

Leveraging these calculated prices and the latest data from Pyth Oracle, Jasper Vault presents these options to users, enabling them to place option orders.

### Automated Execution of Option Contracts on Expiry

#### Monitoring and Execution on Expiry:

When a user places an order for options, the Jasper Vault contract accesses the corresponding underlying asset prices from Pyth Oracle to determine whether the options should be exercised.

#### Automatic Execution:

If the conditions specified in the option contract are met at the time of expiry (e.g., the asset's price has risen for a call option), Jasper Vault automatically executes the option contract.


---

# 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.jaspervault.io/development/architecture/oracle-pyth.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.
