# Closing Positions

## 1. Go to ApeMexMargin contract&#x20;

{% embed url="https://bscscan.com/address/0x2a51067d0cb2ce4c60c20cabaa2c1d7dc2195122#writeContract" %}

## 2. Click Connect to Web3 (with the wallet that owns the positions. It should show the wallet address now.)

## 3. Enter into 5. closePositiion (a) your positionId and (b) 0 as minimalSwapAmount

## 4. Click Write and execute the transaction
