NOONOO TRADINGStart in the bot

TWAP Orders: Splitting a Large Order Across Time

When the quantity you want exceeds the resting book, one market order fills at prices it has pushed upward itself. TWAP addresses that problem with time: submit smaller portions at regular intervals over a defined period to obtain an average execution instead of moving everything at once.

What Is TWAP?

TWAP means Time Weighted Average Price. As an order method, it means dividing a fixed total quantity into equal slices executed at regular intervals over a defined period. For example, one slice per minute over 30 minutes gives 30 slices.

The benchmark is the simple average price during that interval. Whether the market rises or falls, the aim is execution near that average, not necessarily a cheap purchase. TWAP is an execution-cost tool, not a directional prediction tool. Confusing the two leads to asking why a TWAP trade still lost money.

Why Split? The Cost of One Large Order

An order book stacks quantity across price levels. A market buy consumes those layers upward in sequence. The deeper it goes, the worse the average fill.

Hypothetical Sell-Side Book

0.4 BTC at $50,000
0.3 BTC at $50,010
0.3 BTC at $50,030

Buy 1 BTC at Market in One Order
0.4×50,000 = 20,000
0.3×50,010 = 15,003
0.3×50,030 = 15,009
Total: $50,012 → Average $50,012
0.024% worse than the best offer.

Ten Slices, Assuming the Book Replenishes Each Time
Each slice fills in the $50,000–50,010 area.
Average near $50,003.
Difference: About $9 per BTC.

This difference is slippage; the part caused by the order moving price is market impact. The example uses an unusually shallow book to illustrate arithmetic. Major BTC exchanges are much deeper; low-volume altcoins can be much worse. The need to split the same quantity changes completely with the asset's liquidity.

TWAP vs. VWAP

The names are similar, but the allocation basis differs.

TWAP: Equal Time Intervals
60 minutes and 12 slices means equal quantity every five minutes.
The same size is submitted even during quiet trading.

VWAP: Allocation by Volume
More quantity when market trading is heavy;
less when it is quiet.

Simplicity: TWAP.
Minimizing market impact: VWAP often has the advantage.

TWAP is easier for individual accounts because it does not require forecasting volume. VWAP also has a separate indicator role: its line compares current price with the day's average execution. As an execution algorithm, VWAP divides orders in proportion to volume. The name is shared, but the uses differ.

Choosing Slice Count and Interval

There is no fixed answer; balance opposing costs.

More Slices
Lower impact per slice.
Longer execution time and greater risk that price runs away.
More orders: check minimum order units in fee calculations.

Practical Reference Points
Keep each slice below 10–20% of best-quote quantity.
Keep total execution time shorter than the asset's typical price-change timescale.
Vary intervals slightly: 10 seconds might become 8–13 seconds.

The last point matters: identical quantity every 60 seconds creates an observable pattern. At large size, others may anticipate it and buy first. Execution algorithms therefore introduce small variations in timing and size. They may also use iceberg orders to expose only part of the quantity.

Hypothetical Parameter Calculation

Total quantity: 6 BTC
Average best-offer quantity: 0.5 BTC

Slice cap = 0.5 × 20% = 0.1 BTC
Slices required = 6 ÷ 0.1 = 60
30-second interval → 30 minutes total.

If the asset often moves more than 1% in 30 minutes,
larger slices and a shorter period may be preferable.

When TWAP Becomes Unfavorable

① A persistent one-way market. A 30-minute buy TWAP during an uptrend pays more for later slices. Savings in impact can be outweighed by following the rise. This timing risk moves opposite to impact cost: longer execution reduces impact but raises timing exposure.

② A sharp move has already begun. Do not use TWAP for an order that must exit immediately, such as a stop or liquidation avoidance. If price worsens throughout the next 30 minutes, you absorb the whole damaging interval. Speed takes priority over cost for emergency exits.

③ Unchecked fee structure. More slices mean more orders. Maker limit execution can help, but all-taker execution may cost more in fees than it saves in slippage. Designing limits that advance to the next slice when unfilled requires understanding Post Only, Reduce Only, and IOC.

④ The order was small already. If it is only a few percent of best-quote quantity, there is little impact to avoid. TWAP merely extends execution time.

First Check Whether Your Order Needs Splitting

Judge size relative to the book, not its dollar amount. The same $1,000 is negligible in BTC but can consume two or three levels in an illiquid altcoin.

Procedure

1. Check quantity at the best ask.
2. Divide your order quantity by that amount.

Below 10% → A direct order is generally sufficient.
10–50% → Roughly two to five slices may suffice.
Above 100% → Consider TWAP or iceberg execution.

Example: Best offer 0.5 BTC; your order 0.03 BTC.
Ratio 6% → No split needed.

Most individual accounts fall in the first category for major coins. The main value of learning TWAP may be understanding poor fills in low-volume assets, rather than needing it immediately. Thin books explain many differences between displayed and executed prices.

If the Exchange Does Not Offer TWAP

Some exchanges provide it natively; others do not. You can manually divide total quantity by slice count and use a timer. The difficulty is changing the plan when price moves: after a few slices, a rise can cause impatience and a single rushed order for the remainder, undoing the purpose.

TWAP executes a quantity already decided; it does not decide how much to buy. Adding quantity on each decline is staggered buying or averaging down, which increases the total. Set the total with position sizing, then use TWAP only to execute it. Mixing the two can produce a position much larger than planned.

If order types are unfamiliar, read order types first. Understanding limit, market, and stop orders is necessary to choose how each slice is submitted.

Three Key Points

① TWAP evenly distributes a fixed quantity over time to execute near that period's average. It targets execution cost, not cheap entry.
② More slices reduce impact but extend time and can increase timing risk and fees. A practical slice reference is 10–20% of best-quote quantity.
③ Do not use it for urgent stops or liquidation avoidance. Below 10% of visible best-quote quantity, splitting may offer no benefit.

Notice

Book quantities, fills, order amounts, and slice counts are hypothetical examples, not exchange or asset measurements. Actual books change continuously alongside other participants' orders, so average fills are not guaranteed to match the example. Slice and interval guidelines are general references, not optimal values. Leveraged trading can lose all principal. Investment decisions and responsibility are yours.

NOONOO TRADING invites you to follow live trading in our free chat.

Start in the bot

📈 OKX trading fee discount for new registrations

Register for the OKX Fee Discount →