# TWAP Order

{% embed url="<https://www.youtube.com/watch?v=kthrLiR_-jQ>" %}

### <mark style="color:orange;">TWAP Order (Time-Weighted Average Price)</mark> <a href="#id-4cde" id="id-4cde"></a>

A TWAP (Time-Weighted Average Price) Order is an advanced algorithmic order type that automatically breaks a large trade into smaller, evenly distributed fills executed over a defined time period. This approach helps reduce price impact and slippage, allowing traders to enter or exit large positions without disrupting market prices.

### <mark style="color:orange;">How TWAP Orders Work</mark> <a href="#id-4cde" id="id-4cde"></a>

When you place a TWAP order, Definitive’s algorithm:

* Splits your total trade into multiple smaller fills, called segments.
* Schedules execution of each segment over a user-defined time range - anywhere from 10 minutes to 30 days.
* Monitors onchain market conditions throughout the duration, dynamically routing each fill through the optimal venue among 100+ integrated DEXs in Definitive’s smart order router.
* Executes segments automatically, achieving an average fill price that closely tracks the time-weighted market average.

<figure><img src="/files/mwgaFFSNVh7VM2Mmnmnl" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.definitive.fi/platform/prime/twap-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
