Hyperliquid TWAP Orders: How They Work, Limits & API
How Hyperliquid TWAP orders work: suborders 30+ seconds apart, 3% max slippage, 3x catch-up, 5 minutes to 7 days, $100 minimum, and the twapOrder API.
Key facts
- A Hyperliquid TWAP order splits one large order into smaller suborders sent at intervals of at least 30 seconds, so the position is built or closed gradually instead of in one fill.
- Each Hyperliquid TWAP suborder has a maximum slippage of 3%, and a TWAP that falls behind schedule can catch up with suborders of at most 3 times the normal suborder size.
- Hyperliquid TWAP orders can run from 5 minutes to 7 days and require a minimum total order size of $100.
- The randomize option on a Hyperliquid TWAP order varies each suborder by up to plus or minus 20% of its original size.
- On the Hyperliquid API a TWAP is placed with the twapOrder exchange action and stopped with twapCancel; fills are returned by the userTwapSliceFills info request.
A TWAP (time-weighted average price) order on Hyperliquid takes one large order and feeds it to the order book in small pieces over a period you choose. Instead of crossing the spread with your full size and paying for the depth you eat, you trade a little every 30 seconds or so and end up with an average price close to the market's average over that window. It is the standard tool for getting into or out of a position that is large relative to the book.
This post covers exactly how Hyperliquid's TWAP behaves, using the numbers in Hyperliquid's own documentation: how the order is sliced, the slippage limit on each slice, what happens when it falls behind, the limits on duration and size, the options on the ticket, and how to place one through the API. It closes with when a TWAP is the wrong tool.
Published November 23, 2026. Parameters reflect Hyperliquid's published order-type documentation as of that date; confirm against the official docs before relying on a specific figure.
How a Hyperliquid TWAP order is sliced
When you start a TWAP, Hyperliquid divides the total size into suborders and sends them at a fixed interval. The docs put the floor on that interval at 30 seconds: suborders are sent as often as every 30 seconds, and longer TWAPs space them further apart. Their own example is a $10,000 order run over 4 days, which is split into roughly 1,000 suborders, or about $10 every six minutes.
The schedule is defined by a simple target. At any moment the TWAP aims to have executed the elapsed time divided by the total time, multiplied by the total size. Half-way through the window it wants to be half filled. Each suborder is sized to bring the executed amount back to that line.
| Parameter | Value |
|---|---|
| Suborder interval | At least 30 seconds; longer for long-running TWAPs |
| Max slippage per suborder | 3% |
| Catch-up limit | Up to 3x the normal suborder size |
| Running time | 5 minutes to 7 days |
| Minimum total size | $100 |
| Randomize | Each suborder varied by up to ±20% |
| Reduce-only | Supported |
| Guaranteed to complete | No |
The 3% slippage limit and what happens when a TWAP falls behind
Each suborder is a market-style order with a slippage limit: Hyperliquid's docs state that TWAP suborders have a maximum slippage of 3%. If the book is too thin for a suborder to fill inside that limit, the unfilled part does not chase the price. It is carried forward instead.
That is where catch-up comes in. A TWAP that is behind its target tries to make up the shortfall in later suborders, but each one is capped at 3 times the normal suborder size. The cap stops a TWAP from dumping a large backlog into the book in one go, which would defeat the purpose of using one.
The consequence is easy to miss: a Hyperliquid TWAP is not guaranteed to finish. If liquidity stays thin for long enough, the 3x cap means the order may not fully catch up to its total size by the end of the window, and it ends partly filled. Suborders also do not fill during the post-only period of a network upgrade. If you need the full size done by a deadline, check progress before the window closes rather than assuming.
Duration, minimum size and the options on the ticket
Running time can be set anywhere from 5 minutes to 7 days, and the total order must be at least $100. Inside those limits there are three options worth understanding.
Randomize varies each suborder by up to plus or minus 20% of its original size. Evenly sized orders arriving on a fixed clock are easy for other participants to spot and trade ahead of; randomizing the sizes makes the pattern less obvious without changing the total.
Reduce-only restricts the TWAP to closing an existing position, so it cannot flip you to the other side if the position is reduced by something else while the TWAP is running. Use it whenever the TWAP is an exit.
Price limits let you set a worst acceptable price. With one set, suborders will not fill at a price worse than that value, which turns the TWAP into a schedule that pauses when the market moves against your limit. The trade-off is the same as with catch-up: the more you restrict fills, the more likely the order ends incomplete.
What a TWAP costs
There is no separate charge for using a TWAP; you pay the normal trading fee on each fill. Suborders execute against resting orders in the book, so plan on the taker rate, which is 0.045% at the base tier for perps on Hyperliquid's own markets. Hyperliquid Fees Explained has the full schedule, including volume tiers and staking discounts.
The real saving from a TWAP is in price impact, not fees. A market order for a size that clears several levels of the book pays the difference between the top of the book and the last level it reaches. Spreading the same size over time lets the book refill between slices. The cost you take on in exchange is time: the market can move away from you while the TWAP is still working, and a position held across funding intervals pays or receives funding on whatever has been filled so far. Funding Rate Explained covers that part.
Placing a TWAP through the Hyperliquid API
In the exchange endpoint a TWAP is its own action type. A twapOrder action carries the asset (a), the side (b, true for buy), the size (s), reduce-only (r), the running time in minutes (m) and the randomize flag (t). The response returns a TWAP id. A twapCancel action takes the asset and that id and stops the remaining suborders; what has already filled stays filled.
To track execution, the info endpoint's userTwapSliceFills request returns the most recent TWAP slice fills for an address, up to 2,000. Slice fills are identifiable because they carry a hash of 0, unlike ordinary fills. The WebSocket feed reports a TWAP's status as activated, finished, terminated or error, which is what an automated system should watch to learn that a TWAP stopped early.
Durations outside the allowed range are rejected at placement, with errors of the form 'Invalid TWAP duration'. For the wider API surface, see Hyperliquid Market Data & API and Hyperliquid WebSocket API.
When to use a TWAP, and when not to
Use a TWAP when your size is large against the visible depth and you care more about average price than about being filled this minute: building a position in a mid-cap perp, unwinding a large position without signalling it, or rebalancing on a schedule.
Do not use one when timing is the whole point. If you are reacting to a breakout, a stop level or news, a TWAP gives you a fraction of the position at the price you wanted and the rest at whatever comes after. A TWAP is also a poor emergency exit: it reduces risk slowly by design, and it can end incomplete. For a small order in a deep market such as BTC or ETH, the price impact you would save is close to nothing and a limit order is simpler. And an exit that must happen should not be left to a TWAP: in a market bad enough to trigger liquidations, the mechanics in Hyperliquid ADL Explained matter more than execution quality.
A TWAP also does not manage risk for you. The filled part of the position is fully exposed to price and to liquidation while the rest is still pending. If leverage is involved, know your numbers first: Liquidation Price Calculator shows how the liquidation price moves as size is added.
Where Signalview fits
Signalview is our product, so weigh this accordingly. We build non-custodial AI agents that trade Hyperliquid perps from backtested strategies scored from −100 to +100, on scoped agent keys that can place orders but never withdraw. A TWAP answers the question of how to execute a decision you have already made; a strategy answers when to be in the market at all. If the second question is the one you are stuck on, you can browse scored Hyperliquid signals and see each strategy's backtest before anything trades.
Risk note: perpetual futures are leveraged instruments and you can lose your entire margin. A TWAP changes how an order is executed, not the risk of the position it builds. Nothing here is investment advice.
Frequently asked questions
- What is a TWAP order on Hyperliquid?
- A Hyperliquid TWAP (time-weighted average price) order splits one large order into smaller suborders sent at intervals of at least 30 seconds over a period you choose, so the position is filled gradually at close to the average market price for that period.
- How long can a Hyperliquid TWAP run?
- A Hyperliquid TWAP can run from 5 minutes to 7 days. The total order size must be at least $100.
- What is the slippage on a Hyperliquid TWAP?
- Each Hyperliquid TWAP suborder has a maximum slippage of 3%. If a suborder cannot fill inside that limit, the unfilled amount is carried forward and later suborders can be up to 3 times the normal size to catch up.
- Is a Hyperliquid TWAP guaranteed to fill completely?
- No. Catch-up suborders are capped at 3 times the normal suborder size, so in thin markets a Hyperliquid TWAP may not reach its total size before the running time ends.
- How do I place a TWAP with the Hyperliquid API?
- Send a twapOrder action to the exchange endpoint with the asset, side, size, reduce-only flag, duration in minutes and randomize flag. Cancel it with twapCancel using the returned TWAP id, and read fills with the userTwapSliceFills info request.