Closing Trades

Step-by-Step Guide to Manually Closing Positions


🎯 When to Close a Trade

You might want to manually close your position when:

  • Taking profits at your target level

  • Cutting losses before hitting your stop loss

  • Market conditions change and you want to exit

  • Reducing risk ahead of major news events


πŸ“± Closing Your Position

Step 1: Locate Your Trade

  1. Navigate to "Open Trades" section below the main trading interface

  2. Find the specific position you want to close

  3. Review current P&L to confirm this is the trade you want to exit

Step 2: Initiate Trade Closure

  1. Look for the "X" button on the right-hand side of your trade row

  2. Click the "X" button to start the closing process

  3. Review the closing details that appear:

    • Current market price

    • Expected closing price (including spread)

    • Estimated profit/loss

    • Any applicable fees

Step 3: Confirm the Transaction

  1. Click "Confirm Close" on the platform

  2. Your wallet will popup (MetaMask, WalletConnect, etc.)

  3. Review transaction details in your wallet:

    • Gas fee amount

    • Transaction summary

  4. Click "Confirm" in your wallet to submit the transaction

Step 4: Wait for Execution

  1. Transaction submitted - Your request is sent to the blockchain

  2. Awaiting confirmation - The network processes your transaction

  3. Oracle price fetch - Pyth oracle provides the final execution price

  4. Trade closed - Your position is officially closed


πŸ’° What Happens When You Close

Immediate Effects

  • Position removed from "Open Trades" section

  • Funds returned to your wallet balance

  • P&L realized - unrealized gains/losses become final

  • Any TP/SL orders for this position are automatically cancelled

Final Settlement

What you receive:

  • Original collateral Β± your profit/loss

  • Example 1: $500 collateral + $100 profit = $600 returned

  • Example 2: $500 collateral - $50 loss = $450 returned

Fees deducted:

  • Trading fees (if applicable)

  • Funding fees (for positions held overnight)

  • Gas fees (paid separately for the transaction)


⏱️ Understanding the Process

Execution Timeline

  1. Click "X" β†’ Instant

  2. Wallet confirmation β†’ 5-30 seconds (depends on you)

  3. Blockchain processing β†’ 10-60 seconds (depends on network)

  4. Oracle price execution β†’ 5-15 seconds

  5. Funds in wallet β†’ Immediate after confirmation

Price Execution

  • Market orders execute at current market price plus spread

  • Slippage possible during volatile market conditions

  • Final price determined by Pyth oracle at execution time

  • No price guarantees - market conditions can change rapidly


⚠️ Important Considerations

Timing Matters

  • Market hours: Some assets have different trading hours

  • Volatility: High volatility can affect execution price

  • Network congestion: Busy networks may delay execution

  • Gas fees: Higher during network congestion

Cannot Be Undone

  • Final action: Once confirmed, you cannot reverse the trade closure

  • Permanent P&L: Your gains or losses become permanent

  • Re-entry requires new trade: Must open a fresh position if you want back in

Partial Closing

  • Not available: You must close the entire position at once

  • Alternative: If you want to reduce position size, close entirely and open a smaller new position


πŸ“Š After Closing Your Trade

Immediate Checks

  1. Verify funds are back in your wallet

  2. Check transaction on blockchain explorer if desired

  3. Review final P&L in your trading history

  4. Ensure no pending orders remain from this position

Record Keeping

  • Note final P&L for your records

  • Review what worked and what didn't

  • Consider lessons learned for future trades

  • Update trading journal if you keep one


πŸ†˜ Troubleshooting

Common Issues

Transaction Pending

  • Wait patiently - network might be congested

  • Check gas fees - low gas can cause delays

  • Don't submit multiple times - this creates duplicate transactions

Trade Not Closing

  • Refresh the page and check if it actually closed

  • Check wallet for pending transactions

  • Verify network connection and try again

Unexpected Price

  • Market moved between your click and execution

  • Spread applied to your closing price

  • Slippage occurred due to market conditions

Getting Help

  • Check transaction status on blockchain explorer

  • Review "Trade History" for completed transactions

  • Contact support if funds don't appear after confirmation


πŸ’‘ Pro Tips

  • Close during liquid hours for better execution prices

  • Monitor gas fees and close during lower-cost periods when possible

  • Have a plan before opening trades about when you'll close

  • Don't panic close unless you have a good reason

  • Consider partial profit taking by closing and reopening smaller positions

Last updated