Skip to main content

What Is a Time-Weighted Average Price (TWAP) Oracle, and Why Is It Used in Derivatives?

A TWAP oracle calculates the average price of an asset over a specific period, rather than providing a single snapshot price. It is used in derivatives to make the contract resistant to sudden, short-term price manipulation attacks, like flash loans.

By averaging the price, the TWAP ensures that the settlement or liquidation is based on a more stable, representative market price.

What Is a Volume-Weighted Average Price (VWAP) and Why Is It Used?
What Are the Trade-Offs between Using a Median Price versus an Average Price?
What Is a Time-Weighted Average Price (TWAP) Oracle?
Why Is the Median Often Preferred over the Average in Oracle Data Aggregation?