Trading
Take profit & stop loss
Attach TP / SL to a new order or set it on an open position.
A take-profit (TP) or stop-loss (SL) closes your position when the mark price reaches your level. Each one is a reduce-only order that executes at market when triggered.
On a new order
Tick TP / SL in the order panel and enter a take-profit price, a stop-loss price, or both. They are sent with the order and sized to it.
On an open position
In the Positions table, open the TP / SL cell. It shows the current TP and SL. Enter a new price for either one and choose Save. These apply to the whole position.
- Saving replaces the existing TP or SL for that side. HyperVeil cancels the old order first, then places the new one, so there's only ever one TP and one SL.
- Remove TP and Remove SL cancel that order.
- Saving with both fields empty sends nothing.
The TP / SL column shows the live values from your open orders on Hyperliquid.
Which side of the price
HyperVeil checks your levels against the current price before sending, so a TP or SL can't trigger straight away.
| Position | Take profit | Stop loss |
|---|---|---|
| Long | Above the higher of mid and mark | Below the lower of mid and mark |
| Short | Below the lower of mid and mark | Above the higher of mid and mark |
For a limit order, the levels are checked against your limit price instead.
If a leg is rejected
Hyperliquid answers for each part separately, and HyperVeil reports each side.
- On a new order: if the order goes through but the TP or SL is rejected, HyperVeil says "Order filled, but TP/SL was rejected" (or "Order placed, but TP/SL was rejected" if a limit order is resting) and shows the result for each leg. It never reports that as a success.
- On an open position: a failed update shows as "TP/SL not updated", or "TP/SL partly updated" if one side worked, with the reason for each side. If the old order can't be cancelled, the new one isn't placed. If the new order is rejected after the old one was cancelled, HyperVeil puts the previous one back and tells you whether it is still set. If it couldn't be put back, the message says the position has no TP or SL on that side now.
In Open orders
Active TP / SL orders appear in Open orders under Hyperliquid's order type, for example "Take Profit Market" or "Stop Market", marked "· Position TP/SL" when they cover the whole position. The Direction column shows which position they close, for example Close Long, and the Trigger column shows the trigger condition. You can cancel them there.