← Back to Blog

TWAP Execution: Minimizing Market Impact on Large Orders

Published April 7, 2026 · 8 min read · By BreakOrb

When you need to buy or sell a large amount of any asset, placing the entire order at once is the worst thing you can do. A single market order for $50,000 of a mid-cap token will eat through the order book, pushing the price against you and costing far more in slippage than the trading fees. TWAP solves this by splitting the order into smaller pieces spread evenly over time.

What Is TWAP?

TWAP stands for Time-Weighted Average Price. It is an execution algorithm that divides a large order into equal-sized smaller orders and executes them at regular time intervals over a specified duration. The goal is to achieve an average execution price close to the market's time-weighted average during that period.

For example, instead of buying $30,000 of SOL in one order, a TWAP algorithm splits it into 30 orders of $1,000 each, executed one per minute over 30 minutes. Each individual order is small enough to have minimal market impact.

Why Large Orders Need TWAP

Every order interacts with the order book. Small orders fill at the best bid or ask with negligible slippage. Large orders consume multiple price levels, and the average fill price is worse than the quoted price at the time of submission.

This effect is called market impact, and it scales non-linearly with order size. A $1,000 order might experience 0.01% slippage. A $100,000 order on the same pair might experience 0.5% slippage or more, depending on order book depth.

Market impact example: A $50,000 market buy of a mid-cap token with $200K of order book depth within 1% of mid-price could move the price 0.3-0.8% against you. TWAP reduces this to near-zero by keeping each slice under the book's absorption capacity.

Beyond slippage, large orders signal intent to other market participants. Algorithmic traders and market makers detect large orders and adjust their quotes accordingly, making subsequent fills even worse. TWAP disguises the total order size by making each slice indistinguishable from normal market activity.

How TWAP Works

The algorithm follows a straightforward process. You specify the total amount to execute, the duration over which to execute, and the number of slices. The bot calculates the size of each slice and the time between executions, then places orders at each interval until the total amount is filled.

  1. Calculate slice size: Total amount / Number of slices = Amount per slice
  2. Calculate interval: Total duration / Number of slices = Time between orders
  3. Execute: Place one slice at each interval as a market or aggressive limit order
  4. Track: Record each fill price and calculate the running average

BreakOrb TWAP Parameters

Configuration example: To buy $30,000 of ETH over 1 hour with 60 slices: twap_total_amount=30000, twap_duration_minutes=60, twap_num_slices=60. Result: $500 buy every 60 seconds. Each order is small enough to fill at the top of the book.

VWAP vs TWAP

TWAP and VWAP are the two most common execution algorithms, and they are often confused. The key difference is what they weight by.

In crypto markets, which trade 24/7 without a clear open-close cycle, volume distribution is less predictable than in traditional markets. TWAP is often the simpler and more effective choice because you do not need to predict when volume spikes will occur.

Deviation Guards

The twap_max_deviation parameter is a critical safety mechanism. Without it, a TWAP algorithm blindly executes into any market condition, including sharp moves against you.

If you are buying $30,000 of ETH over an hour and the price suddenly spikes 5% in the first 10 minutes, continuing to buy at inflated prices defeats the purpose of gradual execution. The deviation guard detects that the current price is too far above the session VWAP and pauses execution until the price stabilizes.

A typical twap_max_deviation setting is 1-3%. This allows normal market fluctuation but pauses during abnormal moves. The algorithm resumes automatically when the price returns within the acceptable band, and extends the total duration to complete the remaining slices.

Risks of TWAP Execution

Getting Started with TWAP on BreakOrb

TWAP execution is available on the Elite tier and is designed for traders managing larger positions or institutional accounts. Start with a moderate number of slices (20-60) and a duration of 30-60 minutes for most crypto pairs.

Set twap_max_deviation to 2% initially. If you find the algorithm pauses too frequently, increase it to 3%. If you want tighter price control, reduce it to 1%.

Monitor the dashboard during execution to track the running average fill price versus the market VWAP. After completion, review the execution report to see how your average price compared to what a single market order would have achieved.

Execute Large Orders Intelligently

BreakOrb splits large orders into time-weighted slices with deviation guards and real-time VWAP tracking. Minimize market impact on every trade.

View Plans & Pricing