$NTDO | $PMRT markets live on beta now

Margin calculations

IM, MM and liquidation formula

Margin definitions

  • Initial Margin (IM): collateral required to open a position.

  • Maintenance Margin (MM): minimum collateral to keep a position open; falling below triggers liquidation.

Let IMR = 1 / MaxLeverage and MMR be the maintenance margin ratio (displayed in the UI; subject to change per market).


Approximate liquidation prices (isolated-formula intuition)

Ignoring fees/funding for intuition, for a position opened at price Pe:

Long liquidation (approx.):

Pliq,longPeMq1mP_{\text{liq,long}} \approx \frac{P_e - \frac{M}{q}}{1 - m}

Short liquidation (approx.):

Pliq,shortPe+Mq1+mP_{\text{liq,short}} \approx \frac{P_e + \frac{M}{q}}{1 + m}

Where 𝑞 > 0 is quantity, 𝑀 is isolated margin, and m = 10% is the maintenance ratio

These are simplified for intuition. Actual liquidation considers live mark, fees, funding accrual, and execution slippage.

Last updated