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.

Last Traded Price

TODO

Last Traded Timestamp

TODO

Cumulative Price

TODO

Calculating Time Weighted Average Price

TODO

Last updated

Was this helpful?