Hyperliquidapp: Hyperliquid TWAP for $100+ Orders

Hyperliquid’s TWAP order type splits orders worth at least $100 into scheduled suborders. Price constraints and a 3% slippage cap on each suborder can leave some of the requested size unfilled when the schedule ends.

Order Size and Timing

The $100 minimum applies to the total order value; individual suborders can be smaller. TWAP running time can be set from 5 minutes to 7 days.

Hyperliquid calculates a fixed interval between suborders from the total order size and running time. Suborders can be sent as often as every 30 seconds. Smaller orders spread over longer durations use wider intervals, so a TWAP does not necessarily submit a suborder every 30 seconds. The optional Randomize setting varies individual suborder sizes.

Activation and Price Limits

An optional trigger price activates the TWAP when the mark price reaches the selected level. A configured maximum price prevents buy or long suborders from filling above that limit. A configured minimum price prevents sell or short suborders from filling below it.

These price bounds can prevent suborders from filling when market prices move outside the permitted range. Reaching a trigger price activates the schedule; it does not establish that the requested size has traded.

Hyperliquidapp - Activation and Price Limits - diagram

Open full-size image

Execution Target and Catch-Up

The cumulative execution target measures the size the TWAP aims to have filled at each point. Hyperliquid calculates it by dividing elapsed time by total running time, then multiplying by total order size.

Graphic: Hyperliquidapp: Execution Target and Catch-Up

Open full-size image

Wide spreads, low liquidity, or a configured price limit can prevent suborders from filling completely. When actual execution falls behind the target, later suborders attempt to recover the shortfall. Catch-up suborders remain subject to the 3% slippage cap and cannot exceed three times the normal suborder size. Normal size means total TWAP size divided by the number of suborders.

The remaining schedule may provide insufficient catch-up capacity to fill the entire order. A TWAP can therefore finish its running time with an unfilled remainder. TWAP suborders also do not fill during the post-only period of a network upgrade.

Decision Checklist

  • Does the total order meet the $100 minimum, with a running time between 5 minutes and 7 days?
  • Should activation wait until the mark price reaches a selected level?
  • Is a maximum buy price or minimum sell price needed, even when that bound prevents fills?
  • Can the trading plan accommodate an unfilled remainder after the scheduled end?
Hyperliquidapp - Decision Checklist - diagram

Open full-size image

Updated: