Comment on page
Multi-position liquidation price calculation
- otTMM: Sum of maintenance margin of other contracts:
- otUPNL: Total unrealized gain or loss of other contracts:
The liquidation price of the
contract (
):
- : Static account equity
- Current oracle price of thecontract
- The liquidation price of thecontract
- : The opening price of thecontract
- The number of open positions of thecontract, positive for long positions and negative for short positions.
- The opening direction of thecontract, +1 for long positions and -1 for short positions
- Maintenance margin rate of thecontract
Initial account balance
, ETH-USDC maintenance margin rate
%, the opening price of ETH-USD
, Current oracle price
= 2900; BTC-USDC maintenance margin rate
%, the opening price of BTC-USDC
, Current oracle price
= 38000. A trader buys
= 1.5 ETH-USDC, sells
= -0.1 BTC-USDC.
otTMM =
otUPNL =
otTMM =
otUPNL =
Last modified 1yr ago