Skip to content

TWAP orders

Spread a large order over time. How a TWAP slices its total into Market IOC orders, what it can and can't promise, and how to follow and stop it.

On this page

A TWAP (time-weighted average price) order works a total size into the market over a period you choose. ATLAS's TP/SL service sends the slices with the key that places TP/SL exits (bound as Full, or Reduce Only for a reduce-only TWAP), so you needn't stay online. You set the side, total, duration and whether it is reduce-only.

  • The duration is 5 minutes to 7 days on a perp, or up to 30 days on spot, in whole seconds.
  • Slices are Market IOC orders, about every 30 seconds by default.
  • On a perp, a TWAP that can add to a position must be cross; a reduce-only one can be cross or isolated. On spot it is always cross and can't be reduce-only.

How it works

Each slice sends what should have filled by then, catching up any shortfall, and passes the pre-trade checks, protective cap and margin check like any order. A TWAP never rests an order and sends nothing after the deadline. A builder fee, if set, is charged on every slice. A reduce-only TWAP stops once the position is flat.

Rules

A TWAP is rejected unless:

  • The total is a whole number of lots, worth at least twice the market's minimum order value at the current mark.
  • No slice would exceed the market's maximum order.
  • The market offers TWAP and has a mark price.
  • No other TWAP is running on that account and market.
  • On an isolated-only market, it is reduce-only.

Following a TWAP

Read a TWAP's progress on request; there is no live feed. It shows the status (running, filled, ended at its deadline, or stopped early and why), fills, what is left and the average price. Each slice is also in your order history. Fields: Advanced orders.

Cancelling

Cancelling one TWAP stops it; a slice already sent can still fill. Cancelling all stops every running TWAP on the account and leaves TP/SL alone.