What is a TWAP order, and how does it work on Hyperliquid?

Updated Nov 18, 2026 · 6 min read

A TWAP order splits a large trade into small suborders sent at regular intervals. Hyperliquid’s rules (5 minutes to 7 days, $100 minimum, 30-second intervals, 3% slippage cap) and how traders use it.

What is a TWAP order? TWAP stands for time-weighted average price. A TWAP order splits one large order into smaller suborders sent at regular intervals over a running time you choose, instead of one order that fills all at once. On Hyperliquid it is a built-in order type: 5 minutes to 7 days, a $100 minimum, suborders at least 30 seconds apart and at most 3% slippage per suborder.

Key takeaways

  • Hyperliquid’s example: $10,000 over 1 hour becomes about 121 suborders of about $83, one every 30 seconds.
  • If suborders fall behind, later ones grow up to 3 times the normal size, and the TWAP can still finish short.
  • Fees are charged per fill, so splitting an order doesn’t lower the fee rate.
  • In TWAP records pulled on Nov 17, 2026 for 150 high-volume wallets, every slice fill took liquidity.

How TWAP works on Hyperliquid

SettingHyperliquid’s rule
Running time5 minutes to 7 days
Minimum size$100 in total
IntervalFixed, worked out from the size and running time; at least 30 seconds, further apart for small orders over long times
Slippage cap3% per suborder
Execution targetElapsed time ÷ total time × total size
Catch-upLater suborders grow, up to 3 times the normal suborder size (total size ÷ number of suborders); it may not fully catch up
Randomize (optional)Each suborder’s size varies at random by up to ±20%
Trigger price (optional)The TWAP starts when the mark price reaches it
Max / min price (optional)A limit for the whole TWAP: no fill above the max for buys or below the min for sells
Source: Hyperliquid documentation, Trading, Order types (TWAP details), checked Nov 17, 2026.

The docs’ second example: $10,000 over 4 days becomes about 1,000 suborders of about $10, sent roughly every 6 minutes. A real order matched the 30-second pattern: a 30-minute TWAP that sold 500,000 XRP (about $479,100) on Nov 17, 2026 went out as 61 suborders, a median 30 seconds apart.

How large traders set their TWAPs

MeasureShare
Running time 5 minutes / 6 to 30 min / 31 min to 4 h18% / 43% / 24%
Running time 4 to 24 hours / 1 to 7 days7% / 7%
Randomize switched on58%
Finished orders that executed 99% or more of their size100%
Slice fills that crossed the spread (taker)100% of 47,727
Suborder gaps between 29 and 31 seconds99% (median 30 s)
Source: Hyperliquid leaderboard (150 wallets with the highest 30-day volume) and info API (userTwapSliceFills; twapHistory, an undocumented request), pulled 21:43 UTC on Nov 17, 2026. Shares of the records the API returned for orders started in the 30 days before the pull. Market data only; not a forecast or a trade signal.

Most of these TWAPs were short: 62% were set to 30 minutes or less, and 7% to more than a day. The taker share is an observation from this pull, not a documented rule.

What a TWAP costs, and the trade-off

Hyperliquid charges fees on each fill at your tier’s rate: 0.045% taker and 0.015% maker at the base tier on crypto perps (Hyperliquid fees). Splitting an order changes how much of the book each piece meets, not the fee rate. The trade-off is time: the price can move while a TWAP runs, a max or min price can leave it short of its size, and a market order is the faster choice. See Hyperliquid order types and slippage explained.

OrderHow it works (Hyperliquid docs)Fee at base tier
MarketExecutes immediately at the current market priceTaker, 0.045%
TWAPSuborders at regular intervals over a set timeTaker on every slice fill in the Nov 17 pull
Limit, Post Only (ALO)Added to the book; only executes as a resting orderMaker, 0.015%
ScaleMultiple limit orders in a set price rangeMaker if they rest
Source: Hyperliquid documentation, Order types and Fees, checked Nov 17, 2026. Iceberg orders are not in Hyperliquid’s order-type list.

Reading TWAP data from the API

The documented userTwapSliceFills info request returns a wallet’s TWAP slice fills, each with a twapId and a hash of zero. The script also uses twapHistory, which returns each TWAP’s running time, size and status. twapHistory is undocumented: it is not on Hyperliquid’s info-endpoint docs page, though it answered on Nov 17, 2026. Placing a TWAP is a signed exchange action (twapOrder); the script below only reads. Tested with Python 3.9.6, standard library only, on Nov 17, 2026.

python
"""Summarise one wallet's TWAP orders from Hyperliquid's public info API (read-only, no key).
userTwapSliceFills (documented) returns up to the 2,000 most recent TWAP slice fills for an address.
twapHistory returns each TWAP's settings and status. It is UNDOCUMENTED: it is not on the
info-endpoint docs page, but it answered on Nov 17, 2026. It may change or stop without notice.
Tested with Python 3.9.6 (standard library only) on Nov 17, 2026.
Usage: python3 twap_fills.py 0xYourAddress"""
import json
import statistics
import sys
import urllib.request
from collections import defaultdict
from datetime import datetime, timezone


def info(body):
    req = urllib.request.Request("https://api.hyperliquid.xyz/info", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
    return json.load(urllib.request.urlopen(req, timeout=30))


def summarise(address):
    fills = info({"type": "userTwapSliceFills", "user": address})
    by_twap = defaultdict(list)
    for f in fills:
        by_twap[f["twapId"]].append(f["fill"])
    rows = []
    for twap_id, fs in by_twap.items():
        fs.sort(key=lambda f: f["time"])
        notional = sum(float(f["px"]) * float(f["sz"]) for f in fs)
        times = sorted({f["time"] for f in fs})  # one suborder can fill against several resting orders
        gaps = [(b - a) / 1000 for a, b in zip(times, times[1:])]
        rows.append({
            "twap_id": twap_id,
            "coin": fs[0]["coin"],
            "side": "buy" if fs[0]["side"] == "B" else "sell",
            "start_utc": datetime.fromtimestamp(fs[0]["time"] / 1000, timezone.utc).strftime("%Y-%m-%d %H:%M"),
            "suborders": len(times),
            "fills": len(fs),
            "notional_usd": round(notional),
            "median_gap_s": round(statistics.median(gaps)) if gaps else None,
            "taker_share": round(sum(f["crossed"] for f in fs) / len(fs), 2),  # crossed = took liquidity
            "fee_bps": round(  # depends on the wallet's fee tier and the market
                sum(float(f["fee"]) for f in fs) / notional * 1e4, 2) if notional else None,
        })
    return sorted(rows, key=lambda r: r["start_utc"], reverse=True)


def history(address):
    latest = {}
    for h in info({"type": "twapHistory", "user": address}):  # one record per status change
        if h["twapId"] not in latest or h["time"] >= latest[h["twapId"]]["time"]:
            latest[h["twapId"]] = h
    for h in sorted(latest.values(), key=lambda h: h["time"], reverse=True):
        s = h["state"]
        yield {"twap_id": h["twapId"], "coin": s["coin"], "side": "buy" if s["side"] == "B" else "sell",
               "minutes": s["minutes"], "randomize": s["randomize"], "size": s["sz"],
               "executed": s["executedSz"], "status": h["status"]["status"]}


if __name__ == "__main__":
    address = sys.argv[1]
    print("slice fills, grouped by TWAP:")
    for row in summarise(address)[:5]:
        print(row)
    print("TWAP orders, latest status:")
    for i, row in enumerate(history(address)):
        if i == 5:
            break
        print(row)

Where Senpi fits

On Senpi, a strategy you confirm runs as code on Senpi’s runtime, and by default no AI model makes live trading decisions. Each strategy trades from its own strategy wallet; the agent holds no key and cannot withdraw. Hyperliquid charges 0.015% maker and 0.045% taker at the base tier on crypto perps. Senpi adds 0% on paid plans (from $50 a month) and 0.03% on the free trial.

What does TWAP mean in trading?

Time-weighted average price. A TWAP order splits a large order into smaller pieces sent at regular intervals over a set time.

What is the minimum and maximum TWAP duration on Hyperliquid?

5 minutes to 7 days, with a $100 minimum total size. Suborders go out at least 30 seconds apart.

Does a TWAP order pay maker or taker fees on Hyperliquid?

In TWAP records pulled on Nov 17, 2026 for 150 high-volume wallets, every slice fill crossed the spread, so expect taker. At the base tier that is 0.045% on crypto perps.

Can a TWAP order fail to fill completely?

Yes. Per Hyperliquid’s docs, if too many suborders don’t fill, for example because of a max or min price, a wide spread or low liquidity, the TWAP may not catch up to its total size by the end.

Sources: Hyperliquid documentation (Trading: Order types, Fees; API: info endpoint userTwapSliceFills, exchange endpoint twapOrder), checked Nov 17, 2026; Hyperliquid leaderboard and info API, pulled 21:43 UTC on Nov 17, 2026.

This page is educational, not financial advice.

Run a strategy as code

On Senpi, a strategy you confirm runs as code on Senpi’s runtime, from its own strategy wallet.

Try Senpi free
Share

Related articles