Closing a Position
When you close a position, your PnL is settled and your collateral (plus or minus profit/loss) is returned to your wallet.
How to Close
- Find your position in the Active Positions panel
- Click Close
- Review the estimated PnL and borrow fee
- Sign the transaction in your wallet
What You Receive
Long position:
PnL = size × (close_price - entry_price) / entry_price
Short position:
PnL = size × (entry_price - close_price) / entry_price
Your payout:
payout = collateral + PnL - borrow_fee
If your PnL is negative (loss), it's deducted from your collateral. The borrow fee is always deducted.
Borrow Fee
The borrow fee compensates LPs for locking their liquidity to back your position. It is calculated from a cumulative market index based on:
- Your position size
- How long the position was open
- Pool utilization over time
- Long/short imbalance over time
The borrow fee is deducted from your payout when closing. The close confirmation shows the current estimate, and the on-chain validator caps the maximum fee that can be charged.
Automatic Closing
Positions can also be closed automatically:
- Liquidation: If the price hits your liquidation price, your position is automatically closed. See Liquidation.
- Take-Profit / Stop-Loss: If you set TP/SL levels, Atlas closes your position when the target is reached. See TP/SL.
To reduce only part of a position or adjust collateral, see Managing a Position.