Order Types & Margin Modes on Hyperliquid
Placing a trade is easy. Placing the right kind of order — with the right margin mode — is what separates disciplined traders from people who get surprised by their fills and their liquidation price. Here is every tool Hyperliquid gives you and when to use it.
14 min read
Hyperliquid’s interface looks clean, but behind the order ticket sits a full professional toolkit: several order types, execution algorithms for larger size, time-in-force flags that control how an order rests, and two distinct margin modes. Choosing well affects the price you get, the fees you pay, and how close your liquidation sits to your entry. This guide walks through all of it with concrete examples.
The core order types
These are the building blocks. Everything else is a variation or an automation layered on top.
| Order type | What it does | Typical use |
|---|---|---|
| Market | Fills immediately at the best available price | Get in or out now; accepts slippage |
| Limit | Rests at a price you set until filled or cancelled | Control entry/exit price, pay maker fee |
| Stop-market | Becomes a market order when a trigger price is hit | Stop-losses, breakout entries |
| Stop-limit | Becomes a limit order when a trigger price is hit | Triggered entry with price protection |
| Take-profit | Closes a position when it reaches a profit target | Lock in gains automatically |
| Stop-loss | Closes a position when it hits a loss threshold | Cap downside automatically |
Market orders
A market order crosses the spread and fills against whatever liquidity is resting on the book. It guarantees execution but not price — in a thin market or during volatility, you may pay meaningful slippage. Market orders are always taker orders, so they pay the higher taker fee. Use them when certainty of execution matters more than a few basis points of price.
Limit orders
A limit order specifies the worst price you will accept and rests on the book until it fills. If it adds liquidity (rests rather than immediately matching) you earn the lower maker fee. Limit orders are the default tool for patient entries and exits. Pair them with the Post-Only flag (below) when you specifically want to guarantee maker treatment.
Stop and take-profit orders
Stops and take-profits are conditional: they sit dormant until the market reaches a trigger price, then convert into a market or limit order. A stop-loss is the single most important risk tool on this list — deciding your exit before you are emotional about it is what keeps a bad trade from becoming a liquidation. Note that stops on Hyperliquid trigger off the mark price, which protects you from being wicked out by a single manipulated print.
Trigger price vs limit price
On a stop-limit, the trigger price is what activates the order and the limit price is the worst fill you will accept once it activates. Set them too close together in fast markets and the order may activate but never fill — which is why many traders use stop-market for hard risk exits.
Execution tools for larger size
If your order is large relative to the book, dumping it as a single market order moves the price against you. Hyperliquid provides two native tools to spread execution out.
Scale orders
A scale order places multiple limit orders spread evenly across a price range you define — for example, ten buy orders laddered between two prices. This improves your average entry if the market trades through the range and means you are not betting everything on one exact price. It is the manual, price-based way to build or unwind a position.
TWAP orders
A TWAP (Time-Weighted Average Price) order slices your total size into many small child orders released steadily over a duration you set. Instead of choosing prices, you are choosing to average into the market over time, minimizing market impact. TWAP is the tool of choice when you need to move real size without announcing it to the whole book at once.
| Feature | Scale order | TWAP order |
|---|---|---|
| Splits across | A price range | A time window |
| You control | Price levels and count | Duration and size |
| Best when | You have a view on the range | You want minimal market impact |
| Execution style | Resting limit orders | Repeated small orders over time |
Time-in-force flags
Time-in-force controls what happens to the part of a limit order that cannot fill right away. Getting this right is how you control your fee treatment and avoid unwanted resting orders.
| Flag | Full name | Behaviour |
|---|---|---|
| GTC | Good Til Cancel | Rests on the book until filled or cancelled (default) |
| IOC | Immediate or Cancel | Fills what it can immediately, cancels the rest |
| ALO | Add Liquidity Only (Post-Only) | Rejected if it would match immediately — guarantees maker fee |
Use ALO / Post-Only when your strategy depends on earning the maker rebate and you would rather have an order rejected than accidentally pay the taker fee. Use IOC when you want to sweep available liquidity right now without leaving a resting order behind. For a full breakdown of how maker and taker fees translate into cost, see the fees guide.
Cross margin vs isolated margin
Margin mode is arguably a bigger decision than order type, because it determines how a loss on one position affects the rest of your account.
Cross margin
In cross margin, all your positions share one collateral pool. This is capital-efficient — unrealized profit on one position can support another, and you are less likely to be liquidated by a brief move. The danger is contagion: a catastrophic loss on one position can draw down the equity backing every position, potentially cascading into multiple liquidations.
Isolated margin
In isolated margin, you assign a fixed amount of collateral to a single position. If that trade goes to zero, your loss is capped at the assigned margin and the rest of your account is untouched. The trade-off is that the position has no extra buffer to draw on, so it liquidates sooner than the same position would under cross margin.
| Attribute | Cross margin | Isolated margin |
|---|---|---|
| Collateral | Shared across all positions | Fixed per position |
| Capital efficiency | Higher | Lower |
| Max loss | Whole cross balance | The assigned margin only |
| Contagion risk | Yes — one loss hits all | No — isolated to the trade |
| Best for | Hedged or correlated books | High-conviction, high-risk single bets |
A practical default
Many traders keep new or speculative positions in isolated margin so a single bad call cannot wipe the account, and reserve cross margin for a deliberately managed, hedged book. Whatever you choose, know your liquidation price before you enter — the liquidations guide shows how it is calculated.
Putting it together: a worked example
Suppose you want to build a long position worth more than the top of the book can absorb, then protect it. A disciplined approach might be: use a TWAP over thirty minutes to accumulate the position with minimal impact; place the position in isolated margin so your downside is capped; set a stop-market below structure as a hard risk exit; and add a take-profit limit at your target. Every one of those decisions is a tool from this guide, and together they turn a gut-feel trade into a plan.
Before you trade
Order types and margin modes control your risk and your fills; the referral code controls your cost. They are independent — applying code PERPLIST for a 4% fee discount does not change any of the mechanics above, it just makes every fill cheaper. If you have not set it up yet, do so before your first trade via the referral code page, then come back and trade with a plan.
Hyperliquid Referral Code
Enter the code when you create your account, or use the direct link below — the 4% fee discount is applied automatically.
https://app.hyperliquid.xyz/join/PERPLIST