# TWAP Config

Execution parameters for a TWAP (time-weighted average price) order. Present in [`orders`](/for-partners/endpoints/user-orders.md) when `orderType` is `twap`.

## Schema

| Field            | Type    | Required | Description                                                                                                              |
| ---------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| `intervals`      | integer | yes      | Number of sub-orders the TWAP splits into.                                                                               |
| `intervalSecs`   | integer | yes      | Seconds between each sub-order execution.                                                                                |
| `maxSlippagePct` | number  | yes      | Maximum allowed slippage per interval as a percentage. `0.5` = 0.5%. If slippage exceeds this, the sub-order is skipped. |

## Example

```json
{
  "intervals": 10,
  "intervalSecs": 60,
  "maxSlippagePct": 0.5
}
```

## Notes

* Total execution duration = `intervals × intervalSecs`. The example above executes over 10 minutes.
* Each sub-order is approximately `totalSize / intervals` in size.
* Not all DEXes expose TWAP config via API — omit if unavailable.


---

# 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.dexpal.io/for-partners/schemas/twap-config.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.
