Multi-position liquidation price calculation
Last updated
Last updated
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 the contract
The liquidation price of the contract
: The opening price of the contract
The number of open positions of the contract, positive for long positions and negative for short positions.
The opening direction of the contract, +1 for long positions and -1 for short positions
Maintenance margin rate of the contract
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 =