- How these functions work on Cross and Isolated Margin accounts: Close Position, Repay, Close All Positions, and Repay All Debt
- Examples of how each of the above functions affect your Margin account assets or liabilities
- Where to find historical information when the above functions are used
For Cross Margin mode
1. What is ‘Close Position’ on Cross Margin?
2. What is ‘Repay’ on Cross Margin?
3. What is ‘Close All Positions’ on Cross Margin?
4. What is ‘Repay All Debt’ on Cross Margin?
5. How to use the Close Position and Repay functions on Cross Margin?
6. Application of Close Position and Repay functions
- Using 100 USDC as collateral, you have borrowed 100 USDC and bought 0.002 BTC at $50,000 and 0.05 ETH at $2,000, using a total of 200 USDC.
- Your Margin account therefore contains 0.002 BTC and 0.05 ETH as assets and 100 USDC liability.
- Assuming BTC and ETH prices do not change, let’s see how your positions will change depending on each function:
Close Position (BTC) into USDC | Repay (USDC) | Close All Positions into USDC | Repay All Debt | |
Description | 0.002 BTC will be sold at $50,000 into 100 USDC (your chosen stablecoin). Your 100 USDC liability remains unpaid. | 100 USDC liability will be repaid, in this case by selling your assets. Assume that you have chosen to sell ETH first. Since selling 0.05 ETH at $2,000 will result in 100 USDC, only ETH is sold. Lastly, 100 USDC liability is repaid using the 100 USDC proceeds. | All debts will be repaid and remaining assets will be sold into USDC (your chosen stablecoin). In this case, BTC and ETH are sold to repay USDC debt, and remaining assets are also sold into USDC. | All debts will be repaid. In this case, USDC liability is repaid by selling your assets. Assume that BTC is sold at $50,000 due to better liquidity. You receive 100 USDC which is used to repay the 100 USDC debt. |
BTC | 0 BTC | 0.002 BTC | 0 BTC | 0 BTC |
ETH | 0.05 ETH | 0 ETH | 0 ETH | 0.05 ETH |
USDC | 100 USDC asset 100 USDC debt | 0 USDC asset 0 USDC liability | 100 USDC asset 0 USDC liability | 0 USDC asset 0 USDC liability |