Hyperliquid trading with a planned limit-order exit
last updated
Hyperliquid supports planned position exits through limit orders that execute at the selected price or better. For perpetual positions, reduce-only restricts the order to reducing existing exposure. A long position closes through selling; a short closes through buying. The price condition can leave an exit partly filled or entirely unfilled. Market exits prioritize immediate execution against available liquidity. Review or abandon the planned order before submitting it, because execution can begin immediately after submission.
The short version: A reduce-only limit exit controls the acceptable execution price, while the unfilled position remains exposed to market movements.
A planned exit with a partial-fill alternative
Consider a hypothetical existing long position in a selected perpetual market, with position size Q and an acceptable selling price L. These inputs, the available liquidity, and the fill outcomes below are hypothetical. The reader wants to review the exit without changing exposure until submitting it. Before commitment, the relevant inputs are the selected market, current position size, exit side, and price condition.
The reader wants to control the lowest acceptable execution price. A sell limit at L preserves that boundary. A market exit prioritizes execution against available bids and does not preserve the same chosen boundary. The reader selects a reduce-only good til canceled (GTC) sell limit for Q at L. Any unfilled remainder can rest on the book, leaving that portion of the position open.
Completion at the accepted price
After checking the inputs again, the reader submits the exit. In the normal path, sufficient buying interest fills Q at L or better. The fill records show the executed quantity, and the selected position becomes flat. Together, those records confirm the intended exit. The submitted order has already authorized execution; the reader cannot undo completed fills by canceling it.
A partial fill before cancellation
In the alternative path, only quantity F fills, where F is less than Q. Assuming no other trades or liquidations, the remaining position equals Q minus F. The reader checks that smaller position and requests cancellation of the unfilled order. A cancellation request does not establish that matching stopped immediately.
If cancellation succeeds without additional fills, the account retains the Q-minus-F position and no active remainder of that exit. If another fill occurs first, the reader uses the updated position instead. Restoring the original exposure would require another trade with its own execution outcome.
Price control versus an immediate exit attempt
A limit order defines an acceptable execution boundary, while a market order seeks immediate execution against available liquidity. For a closing sell, the limit sets the lowest acceptable price; for a closing buy, it sets the highest. Neither approach creates liquidity. A limit can wait without filling, and a market order can encounter insufficient liquidity. The choice changes when continued exposure becomes less acceptable than uncertainty about execution price.
Reduce-only and the direction of the position
Reduce-only makes a closing instruction conditional on its effect on the existing position. Selling reduces a long; buying reduces a short. The selected market and account must match the position that the order is meant to close. An opposite-side order without this restriction can become new exposure if its executed quantity exceeds the position.
A reduce-only order cannot open a new position in the opposite direction. This restriction does not guarantee a fill or select an appropriate price. It also does not freeze the position while the order waits. Other executions can change the amount available to close, so an earlier position snapshot can become stale.
GTC, post-only, and immediate-or-cancel instructions
Time-in-force instructions govern how a limit order behaves when it reaches the order book. The same limit price can therefore produce different order states.
GTC for an order that can remain open
Good til canceled, or GTC, allows an unfilled remainder to rest. A marketable GTC order can execute immediately at acceptable prices before leaving a remainder on the book. Selecting GTC does not mean the order must wait before its first fill.
Post-only for resting execution
Post-only, also called ALO, prevents immediate matching. An order that would cross the book instead fails the post-only condition. This suits an instruction to provide resting liquidity, but it can leave the planned exit absent when the market moves before acceptance.
IOC for an immediate attempt
Immediate or cancel, or IOC, executes available quantity within the price limit and cancels the unfilled remainder. It can therefore produce a partial exit without leaving an order waiting. A canceled remainder still leaves the corresponding position exposure open.
A chart touching the limit does not establish a fill
HyperCore matches orders using price-time priority. Earlier orders at the same price can consume incoming liquidity before a later exit receives a fill. A charted trade at the limit therefore does not establish that enough buying or selling interest reached a particular order. The relevant evidence is its executed quantity. A price touch and an unchanged position can coexist without an execution error.
Resting exits and triggered take-profit orders
An ordinary limit exit can rest on the book immediately, whereas a take-profit limit order waits for its trigger condition. Hyperliquid uses the mark price to trigger take-profit and stop-loss orders. That distinction matters when a displayed trade price reaches a level while the mark price does not.
A triggered limit order still needs matching liquidity within its limit. Triggering does not mean the position has closed. Position take-profit orders also distinguish between an instruction to close the entire position at trigger time and a specifically configured fixed quantity. A fixed quantity does not grow automatically when the position grows. These settings govern different parts of the exit: activation, acceptable price, and quantity.
Cancellation stops future matching, not completed trades
Cancellation applies to an order that remains active. Completed fills survive cancellation and continue to affect the position. A response that an order is missing can mean it never existed, already canceled, or already filled. That response alone cannot distinguish the outcomes.
An uncertain cancellation therefore calls for order history and fill records before another exit submission. Replacing an order while its status remains unclear can leave overlapping instructions. Reduce-only constrains their effect on exposure, but it does not resolve which order remains active or which price condition will govern subsequent fills.
Fill records and the remaining position
An open order confirms acceptance, not execution. A canceled order may still have earlier fills, while a filled exit may close only the portion originally requested. Order status therefore answers a narrower question than whether the account has reached the intended position size.
Fill records identify executed quantities and prices, along with the associated order identifier. The account position supplies the remaining exposure. A full exit requires that selected position to be flat; a partial exit requires the intended smaller position. If other trades occurred during the interval, their quantities also belong in the reconciliation. A single exit order cannot explain an account change that includes unrelated executions.
Exposure and costs while the exit waits
A resting exit leaves the unfilled position subject to price movements and applicable funding payments. Liquidation can occur if equity in the relevant cross-margin account or isolated position falls below its maintenance margin requirement before the planned exit executes. The limit price does not reserve enough equity to keep the position open until a buyer or seller arrives.
The execution price also differs from the net trading result. Fees depend on the applicable schedule and execution circumstances, while funding affects the cost of holding perpetual exposure. A chosen limit alone cannot establish net profit. If the objective changes from waiting for an acceptable price to reducing exposure immediately, the order choice needs reconsideration against the remaining position and available liquidity.
Common questions about Hyperliquid
Can I divide a planned exit across several limit prices?
Separate limit orders can target different prices for portions of a position. Each order has its own quantity and execution condition, so one target can fill while another remains open. Reduce-only instructions keep those exits tied to reducing exposure. The remaining position, rather than the original size, determines how much exposure still needs an exit.
Does a fixed limit exit automatically follow a moving market?
An ordinary fixed limit order keeps its specified price unless you change the instruction. A market move can make that price executable or leave it waiting. Automatic repricing is a separate behavior, so a fixed target should not be treated as a moving exit price.
Why would an exit order fail the reduce-only check?
An exit fails the reduce-only check when it would increase exposure instead of reducing the relevant position. The selected direction may be wrong, or another execution may already have closed the position. Rechecking the current position can explain the rejection without removing the restriction that prevents an unintended new trade.
Will a limit exit always receive maker pricing?
A limit exit does not automatically receive maker pricing because it can execute immediately against resting orders. A GTC order can take liquidity first and leave a remainder that later provides liquidity. Post-only prevents immediate matching, but the applicable fee schedule still determines the charge or rebate for a resting fill.