In Cross Margin, the account margin requirement is the total sum of margin requirements across markets. For portfolio-level risk evaluation with reduced margin requirements, see Portfolio Margin.
where Margin Requirement can refer to Initial Margin Requirement (IMR) or Maintenance Margin Requirement (MMR)
Initial Margin Requirement (IMR)
Open Size
Open size represents the maximum position size the account can have if all orders on one side or the other are filled :
Buy open size=max(0,Total size of buy orders+Signed position size)
Sell open size=max(0,Total size of sell orders−Signed position size)
where the position sign is positive for a long position and negative for a short position
IMR Breakdown
IMR(m) is the account IMR for market m and is composed of :
Net IMR: This is a fraction of the Open Size value in USD. The fraction is called IMF (Initial Margin Fraction) and is equal to 1 / Leverage. The leverage is set by default to the market maximum leverage but can be updated to a lower level by the user.
Fee Provision: This is a provision for the amount of entry/exit fees that the account is expected to pay based on open position/orders.
Open Loss: This is a provision for orders that are aggressive relative to the mark price and are expected to lead to immediate unrealized loss after they are filled
IMR(m)=Net IMR(m)+Fee Provision(m)+Open Loss(m)
Net IMR
For perpetual futures, the IMR for each side (buy/sell) is calculated as :
Buy Initial Margin Requirement (IMR)=Buy open size * IMF∗Mark Price
Sell Initial Margin Requirement (IMR)=Sell open size * IMF∗Mark Price
The Market Net IMR is equal to:
Market Net IMR=max(Buy IMR,Sell IMR)
Example
User has :
Short 1 BTC-USD-PERP (the signed position size is -1 BTC)
3 Buy BTC-USD-PERP open orders
2 Sell BTC-USD-PERP open orders
Assuming :
BTC-USD-PERP IMF = 2%
BTC-USD-PERP Mark Price is 90,000 USD
Buy open size = 3 - 1 = 2 BTC
Sell open size = 2 + 1 = 3 BTC
This user’s IMR for BTC-USD-PERP is :
Net IMR = Sell IMR = 2% * 3 * 90,000 = 5,400 USD
Maintenance Margin Requirement (MMR)
The Maintenance Margin Requirement (MMR) only depends on open positions (not impacted by open orders) and is composed of :
Net MMR: This is a fraction of the Net IMR based on MMF Factor
MMF Factor is currently set to 50% for all perpetual futures. This means that Net MMR is half of the Net IMR
Fee Provision: This is a provision for the position exit fee, so this is equal to Taker Fee * Position Value
where Open Notional is the total Open Size expressed in USD and summed across markets
i.e.
Open Notional=marketm∑Open Size(m)∗Mark Price(m)
Account Maximum Leverage
Account Maximum Leverage=Account IMROpen Notional
This maximum leverage depends on the account maximum leverage per market. It represents the maximum allowed Effective Leverage beyond which the account will be unable to submit new orders that increase open notional.