Skip to main content
By the end of this guide you will have worked a large order without hitting the book all at once: either as a TWAP that trades in slices over time, or as a ladder of limit orders spread across prices. Here is why it matters. A single large market order eats through the order book and fills at worse and worse prices. The two methods avoid that in different ways:

What you need

  • Funds on the venue: USDC on Hyperliquid, or pUSD in your Polymarket deposit wallet. See Fund each venue.
  • A total size, and either a duration (TWAP) or a price range and number of levels (ladder).

Run a TWAP on Hyperliquid

1

Check the book first

Compare your total size with what sits near the top of the book. That tells you whether a TWAP is worth it.
2

Preview the TWAP

3

Start it (moves money)

Reply yes. The TWAP now trades on its own until the duration ends.
4

Watch the slices

5

Stop it early if you need to (moves money)

Slices that already filled stay filled. Your position is whatever has executed so far.

Place a limit ladder

1

Describe the ladder

Several orders can go in one request, and you confirm them together.
2

Place it (moves money)

Check every price and size, then reply yes.
3

Manage the ladder

On Polymarket the same idea works with a batch of limit orders:
Every order needs your confirmation, and nothing here is financial advice.

Check it worked

  • For a TWAP: the fills add up to the total size by the end, or to what filled before you stopped it.
  • For a ladder: every level shows in your open orders at the price you approved.

Common mistakes

  • Sizes that do not match the market’s precision. Hyperliquid rejects sizes with too many decimals. Let the agent round to the market’s size step.
  • Prices off the tick. On Polymarket each price must sit on the market’s tick size.
  • Levels too far from the market. Hyperliquid rejects prices too far from the current price. Keep the ladder within a sensible range.
  • Forgetting a ladder is live. Resting orders can fill days later. Cancel what you no longer want.
  • Treating TWAP as a price guarantee. Each slice fills at the market at that moment.

Next guides

Perp with take-profit and stop-loss

Attach exits once you are in.

Hyperliquid tool

TWAP and order parameters for your own code.