JasperVault
JasperVault WebsiteLaunch APP
  • Welcome
    • Official Website
    • What is Jasper Vault?
      • Fees Structure
      • Platform Statistics
    • Referrals
    • Brand Logo & Guidelines
    • Fractal Jasper NFT
  • Degen Options
    • Overview
    • Advantage
    • For Traders
      • User Guide
      • Rewards
      • Leaderboard
      • FAQ
    • For Liquidity Provider
      • Fees Structure
    • Smart Contracts
  • development
    • Github
    • Release-Notes
    • Architecture
      • Option Orders Issuance and Exercise
        • EVM Scenario
        • BTC Scenario
      • Option Offering and Buying Flow
      • Trade Settlement
      • Oracle - Pyth
    • Building Blocks
      • Account Abstraction (EVM)
      • Program Derived Addresses (Solana)
      • Jasper Chain (BTC)
    • Deployed Smart Contracts
      • Arbitrum
      • BASE
      • Bitlayer
      • Sei EVM
    • Interfaces & ABI
    • JasperVault SDK
      • Overview
      • Vault Management
      • Option Trading
    • Order Process and Signature Steps
  • SUPPORT
    • Tutorials
      • 💹 Jasper Vault Explained: How to Profit with Options
      • ↕️ Degen Options: A Step-by-Step Guide
      • 🌐 0DTE Options: A Step-by-Step Guide
      • 📚 BitStone: A Step-by-Step Guide
      • 🖥️ Jasper Pro (Leverage): A Step-by-Step Guide to Buying Options
      • ↖️↗️ Long Straddle Guide: Combo Trading on Jasper Pro (Leverage)
      • ✍️ Jasper Pro (Limit) — Introduction & Use Cases
      • 🔄 Moonlight Box Guide: DApp Trading Tool
      • 🟣 Power Stone Guide: BitStone Trading Tool
      • 🔴 Reality Stone Guide: BitStone Trading Tool
    • Tutorials (CN) 教程
      • 💹 Jasper Vault 期權如何盈利
      • ↕️ Degen Options 分步交易指南
      • 🌐 0DTE Options 分步交易指南
      • 📚 BitStone 分步交易指南
      • 🖥️ Jasper Pro (槓桿版) 买入期权分步指南
      • ↖️↗️ Straddle 策略教學 – Jasper Pro(槓桿版)
      • ✍️ Jasper Pro(限價版)— 功能簡介與應用策略
      • ⏪月光寶盒指南:DApp 交易工具
      • 🟣 力量宝石指南:BitStone 交易工具
      • 🔴 现实宝石指南:BitStone 交易工具
    • Video Guide
      • 📚 Jasper Vault DEGEN Options: Step-by-Step DApp Video Tutorial
      • ⏪ How to Use Moonlight Box - DApp Video Tutorial
  • Community
    • Social Media & Communities
  • About Us
    • Terms of Service
    • Vision & Mission
    • Roadmap
  • Security
    • Audit Reports
Powered by GitBook
On this page
  • Real-Time Price Fetching and Option Pricing
  • Automated Execution of Option Contracts on Expiry
  1. development
  2. Architecture

Oracle - Pyth

PreviousTrade SettlementNextBuilding Blocks

Last updated 10 months ago

Real-Time Price Fetching and Option Pricing

Pyth Oracle Integration:

Jasper Vault retrieves the current asset prices from Pyth Oracle using the API endpoint: . 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.

https://hermes.pyth.network/api/latest_price_feeds