# Time Weighted Average Price (TWAP)

## <mark style="color:green;">What is a TWAP?</mark>

Time Weighted Average Pricing is when you take the average of SGO market price over a **period of time**. The longer this **period of time** is, the more stable SGO price calculations will be. You can also think of it like a technical analysis moving average window.

This is different compared to "spot pricing", which is the market price of SGO right at that moment of time. Spot pricing tends to be more volatile since SGO price could swing within a matter of seconds.

<figure><img src="https://2653416464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJvhi8mXc8gQuaumsOFvd%2Fuploads%2FnwqzJ5ikJS9G18izewub%2Ftwap.png?alt=media&#x26;token=8f9192bb-0150-4f15-90db-7abbf6b33c1f" alt=""><figcaption><p>See how stable TWAP pricing compares to more volatile spot pricing</p></figcaption></figure>

<mark style="color:green;">**TWAP**</mark> is generally a more preferred and safer way of making pricing calculations - (whereas in using spot pricing, whales could manipulate the spot price just before they make an exploitive trade on a DEX.)

<mark style="color:green;">**TWAP**</mark> is another "built-in" **safety feature** of SGO to protect the protocol and its holders.

**DRIVE** makes extensive use of Time Weighted Average Pricing(**TWAP**) calculations rather than the more volatile (and more manipulatable spot pricing.)&#x20;

In instances where **DRIVE** makes a comparison between **TWAP** and the spot market price in its pool supply management, it also employs a maximum difference calculation to ignore *outlandish* spot pricing.

**DRIVE**'s TWAP averaging period can be changed/fine-tuned by the AI which affects how fast or how slow the **TWAP** price will match a consistent market price.
