Insufficient Funds Error When Closing a Margin Position

If you get the "Insufficient Funds" error when attempting to close a margin position, cancel all your open orders (even stop orders), and try again. Open orders tie up funds which prevent some other orders from being placed, which may prevent orders to close positions from being placed.

Your open orders can be found by navigating to the “Trade” > “Orders” tab from the menu and you can cancel them by clicking on the red “X” to the right of the order: