How to Close Positions and Manage PnL on Hyperliquid
Opening a trade is only the start. Closing the position is where the result is actually realized. On Hyperliquid, you can exit positions in several ways, track PnL clearly, and review past trades to improve your process. Source: Hyperliquid docs.
This guide explains how to close a position manually, how to read unrealized and realized PnL, how to use exit tools such as TP/SL, and where OneKey Wallet fits into a safer perps workflow.
Key comparison table
Understanding Unrealized PnL and Realized PnL
In the Positions panel at the bottom of the Hyperliquid trading interface, you will usually see two important PnL concepts:
- Unrealized PnL: the live profit or loss on an open position. It moves as the market price changes.
- Realized PnL: the profit or loss that is locked in after a position is closed and reflected in your account balance.
Unrealized PnL is not final. It only becomes realized PnL once you close part or all of the position. Hyperliquid also provides PnL statistics on the Account page, which can help you review historical performance.
For exact PnL calculation rules, refer to Hyperliquid’s official documentation.
Three Ways to Close a Position Manually
Method 1: Close from the Positions panel
This is the most common way to exit a Hyperliquid position.
- Open the Hyperliquid app and go to the market where you have an open position.
- Find the position in the Positions tab at the bottom of the screen.
- Click Close on the right side of the position row.
- In the popup, choose the close amount: full position or partial position.
- Select the order type, such as market or limit.
- Confirm the order.
- If you are using a OneKey hardware wallet, review the transaction details on the device and physically confirm the signature.
This flow is straightforward and reduces the chance of accidentally opening the wrong side or using the wrong size.
Method 2: Close by placing an opposite order
You can also reduce or close a position by placing an order in the opposite direction.
For example, if you hold a long position, you can use the order panel to place a Sell / Short order with the same size. In practice, this offsets the existing long exposure.
This can be useful when you need to react quickly or hedge, but pay close attention to the interface. Depending on the settings and order behavior, Hyperliquid may treat the action as opening a new opposite-side position rather than directly closing the original one. Always check the confirmation prompt and your final position size.
Method 3: Use preset TP/SL orders
If you set take-profit or stop-loss orders when opening the trade, or add them afterward, Hyperliquid can automatically close the position when the trigger price is reached.
This is often the cleanest exit method because it removes some of the pressure of making decisions in real time. It is also a core part of risk management for perps traders, especially in fast-moving markets.
Partial Close Strategies
Closing 100% of a position is not always the best choice. A partial close lets you manage exposure more gradually.
Common reasons to partially close include:
- Locking in some profit while leaving a runner open for a higher target.
- Reducing risk when the trend becomes less clear.
- Scaling out in batches to average your exit price.
- Reducing slippage risk on larger positions.
In the Close popup, adjust the close amount to exit only part of the position. Hyperliquid supports entering the close size by amount or by percentage, depending on the interface settings.
Fees When Closing a Position
Hyperliquid uses a maker/taker fee model.
- Closing with a market order is generally a taker action and usually carries a higher fee.
- Closing with a limit order may be a maker action if it rests on the book, which can reduce fees and may be cheaper for larger positions.
For high-size trades, the difference can matter. A limit close can help reduce fees, but it also may not fill immediately. Always balance fee savings against execution risk.
Check Hyperliquid’s official documentation for the latest fee schedule.
How to Analyze Historical PnL
Hyperliquid’s Account or History page provides details for completed trades, including:
- Entry price and exit price
- Position size
- Holding time
- Realized PnL, including fees
- Funding payments received or paid
Reviewing this data regularly is one of the simplest ways to improve as a trader. Look for patterns such as which setups performed best, which market conditions hurt your strategy, whether you tend to close winners too early, and how much fees and funding affect your net result.
PnL review should be practical, not emotional. The goal is to improve decision-making over time, not to justify every trade after the fact.
How Funding Rates Affect PnL
Perpetual futures use a funding rate mechanism. Funding payments are exchanged between longs and shorts at regular intervals to help keep the perp price aligned with the spot price.
If the market is heavily skewed to one side, traders on the opposite side may receive funding. Traders on the crowded side may need to pay it.
For short-term trades, funding may be small. For positions held over many funding intervals, it can materially affect net PnL. A position that looks profitable on price alone may become less attractive after funding costs are included.
Hyperliquid shows the current funding rate and the next funding time in the trading interface. If you hold positions for longer periods, include funding in your PnL calculations.
Where Funds Go After Closing
After you close a position, your USDC margin, plus realized profit or minus realized loss, returns to your Hyperliquid account balance.
From there, you can:
- Use it for another trade.
- Withdraw through Hyperliquid to an Arbitrum wallet address.
- Swap into other assets on Arbitrum through a DEX.
This is where wallet security matters. If you use a OneKey hardware wallet, sensitive actions such as withdrawals require physical confirmation on the device. That helps you verify that funds are going to the intended address, rather than an address modified by a phishing site, malicious approval flow, or clipboard hijacker.
Chainalysis and other on-chain security researchers have repeatedly highlighted withdrawal and approval flows as common attack surfaces in crypto. For perps traders, protecting the exit path is just as important as placing the trade correctly.
Using OneKey Perps in Your Workflow
OneKey Perps is designed to make the perps workflow more practical from a wallet-first environment. Instead of treating trading and wallet security as separate steps, you can manage access, signatures, and trading activity with clearer control over what you are approving.
A simple workflow looks like this:
- Use OneKey Wallet to manage your assets and connected accounts.
- Access OneKey Perps for the trading flow.
- Open, monitor, and close positions with attention to size, margin, TP/SL, fees, and funding.
- Confirm sensitive actions with your OneKey hardware wallet when applicable.
- Review realized PnL and historical trades before adjusting your next setup.
This does not remove market risk. It helps reduce operational risk around signing, withdrawals, and wallet management.
Conclusion
Closing positions and managing PnL are the final steps of a complete trading cycle, but they are often the most overlooked. On Hyperliquid, the Positions panel, PnL data, history page, funding information, and TP/SL tools give traders the data needed to exit more deliberately.
For a safer workflow, use OneKey Wallet and OneKey Perps to manage your trading access and confirm important actions with hardware-level verification where supported. If you have not set up OneKey yet, you can get started at onekey.so/download.
FAQ
Q1: How long does it take for funds to appear after closing a position?
On Hyperliquid, position closes are typically reflected within seconds. Realized PnL updates in your account balance and can usually be used for another trade or withdrawal immediately after the close is processed.
Q2: If my position is liquidated, can I recover any remaining funds?
Usually, forced liquidation occurs when the position breaches the maintenance margin requirement, so there may be little or no remaining margin returned from that position. This is why stop-loss placement should leave enough buffer before the liquidation level.
Q3: Can I close positions outside normal trading hours?
Yes. Hyperliquid is a decentralized protocol that runs 24/7. There is no traditional market close. However, liquidity can vary by time and market conditions, so market orders may experience higher slippage during thinner periods.
Q4: Are realized losses deducted from my Hyperliquid account balance?
Yes. Realized losses are deducted from your USDC account balance. In extreme cases where losses exceed available margin, Hyperliquid’s insurance fund mechanism is designed to handle the shortfall and prevent losses from spreading beyond the account structure.
Q5: How can I export trade history for tax reporting?
Hyperliquid provides a trade history page and commonly supports exporting records in CSV format. Check Hyperliquid’s documentation for the current export process, or use a crypto tax tool that supports on-chain data where appropriate.
Risk Warning
This article is for informational purposes only and is not investment, financial, legal, or tax advice. Perpetual futures trading is high risk. Past PnL does not indicate future results. Always trade according to your own risk tolerance and use appropriate risk controls.



