OptSwap
  • What is OptSwap?
  • Quick Start
    • Concepts & Definitions
    • Making Your First Trade
    • Managing Your Orders
    • Managing Your Positions
  • User Manual
    • Trading
      • Limit Orders
      • Option Spreads
      • Advanced Order Types
        • Batch Orders
        • All-or-None Fill Type
        • Multi-Legged Strategies
      • Automated Market Maker (AMM)
        • Managed Orders
        • Aggregated Spot Price
        • Liquidity Provider Rewards
        • Match Finder Rewards
      • Modify & Cancel Orders
      • Positions
        • Converting Positions
      • User Accounts
      • Options Oracles
      • Margin Requirements
      • Fees
    • Settlements
      • Exercise Option
      • Force Cash Settlements
      • Recover Margin
      • Automated Settlements
        • Settlements Execution Rewards
    • Meta Oracle
      • Methodology
      • Fetching Price Data
      • Price Mining
      • Managing Oracles
      • Donations
    • Governance
      • Concepts & Definitions
      • Tokenomics
      • Proposals
      • Proposal Types
      • Voting & Execution
      • Fundraising
      • DAO Treasury
      • Commercial Papers
      • Airdrops
      • Staking
      • OptSwap Miner
      • Contracts Registry
      • Testnet Faucet
      • Donations
  • Technical Reference
    • API Overview
    • Smart Contracts
      • Deployment Addresses
      • MetaOracle
      • OptSwap
      • OptSwapAMM
      • OptSwapDAOAirdrops
      • OptSwapDAOFundraising
      • OptSwapDAOGovernance
      • OptSwapDAOStaking
      • OptSwapDAOToken
      • OptSwapDAOVeToken
      • OptSwapDAOCommercialPaperToken
    • Subgraphs
      • Endpoints
      • Entities
      • Querying
        • Example Queries
    • REST API
      • Endpoints
      • API Methods
  • Other
    • Terms and Conditions
    • Risk Warnings
    • Privacy Policy
Powered by GitBook
On this page
  • Last Traded Price
  • Last Traded Timestamp
  • Cumulative Price
  • Calculating Time Weighted Average Price

Was this helpful?

  1. User Manual
  2. Trading

Options Oracles

The OptSwap DEX itself can serve as an oracle for the options contracts traded on it. The prices of the options contracts are available as the Last Traded Price (LTP) and as the Time Weighted Average Price (TWAP).

While the LTP provides useful information, it should not be utilized directly in smart-contracts as it's subject to instantaneous fluctuations and potential manipulation by bad actors. To overcome this, the prices are aggregated in a price accumulator which can be used to derive the TWAP for a given duration.

Note that the Options LTP/TWAP Oracles for the DEX are optional and are not part of the stock DEXes that are deployed for deploy-time & run-time gas savings. Governance can deploy new contracts with TWAP Oracles separately, if there is demand for them. If your use-case really requires On-Chain TWAP Oracles, get in touch with governance.

Last Traded Price

TODO

Last Traded Timestamp

TODO

Cumulative Price

TODO

Calculating Time Weighted Average Price

TODO

PreviousUser AccountsNextMargin Requirements

Last updated 10 months ago

Was this helpful?