> For the complete documentation index, see [llms.txt](https://lynex.gitbook.io/lynex-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lynex.gitbook.io/lynex-docs/protocol-overview/dex-functionalities/swap/twap.md).

# TWAP

TWAP (Time-weighted Average Price) is a strategy used in centralized finance (CeFi) to divide a large order into smaller segments, executing at fixed intervals to mitigate market impact. This method is especially valuable for executing consistent investment strategies, like dollar-cost averaging (DCA), where assets are purchased at regular intervals (e.g., monthly).

Ideal for handling orders that could significantly affect the market due to low liquidity or in times of unpredictable volatility, TWAP helps maintain order execution without dictating the market direction.

Lynex introduces dTWAP, a decentralized adaptation of TWAP, via the Orbs protocol. This innovation enables algorithmic trade execution over time within the decentralized finance (DeFi) ecosystem. It is designed for traders seeking to automate their investment strategies, ensuring large orders are spread out to reduce price disruption, thereby facilitating a smoother investment process without directly repeating the strategy's benefits.

For a more in-depth exploration of these mechanics, we encourage you to visit the Orbs Network [website](https://www.orbs.com/) and delve into their comprehensive [documentation](https://docs.orbs.network/).&#x20;

{% embed url="<https://www.youtube.com/watch?t=1s&v=ebcaZoYOzRU>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://lynex.gitbook.io/lynex-docs/protocol-overview/dex-functionalities/swap/twap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
