Case Studies - Liquidation
Examples and calculations
To help users better understand the cause and process of liquidation, we've prepared two sets of examples, one with a single position and the other one with multiple open positions. In both examples, we further list down all possible cases when liquidation is triggered.
General setting:
Alex deposits 1,000 USDC into Symmetry Trade and wants to open positions. The oracle price of BTC is $25,000 and the oracle price of ETH is $2,000 now.
Case 1: Single Open Position
Alex opens +0.2 BTCUSDC position at the execution price of $25,200, , , trading fee rate 0.1%. Minimum margin deposit $50.
Out of the three possibilities listed above, Scene 3 would trigger the liquidation process. For the process, we have four different scenarios, categorized by the price at which all BTC/USDC positions are closed:
Then,
Liquidation keeper fee is .
Alex PnL is .
Margin balance is .
Penalty fee is .
User asset is will be returned to user.
Case 2: Multiple Open Positions
Alex opens +0.2 BTC/USDC position at the execution price of $25,200 and opens -2 ETH/USDC position at the execution price of $1,990. For each trade, , . Trading fee rate 0.1\%. Minimum margin deposit $50.
Out of the two possibilities listed above, Scene 2 would trigger the liquidation process. For the process, we have two different scenarios, categorized by the price at which all BTC/USDC positions are closed (as BTC/USDC would be the first position to close, ETH/USDC follows):
Then,
Liquidation keeper fee is .
Alex PnL is
Penalty fee is .
Margin balance is .
Maintenance margin is .
Maintenance margin ratio is now .
No need to further liquidate the ETH/USDC positions now.
Last updated