FAQ
This article currently does not support your language. Auto-translator is recommended for English.
Home
Support Center
FAQ
Crypto Derivatives
Futures Contracts
Portfolio Margin
What Is the Unified Account Maintenance Margin Ratio (uniMMR) And How Is It Calculated

What Is the Unified Account Maintenance Margin Ratio (uniMMR) And How Is It Calculated

2023-05-04 14:26
What is the Unified Maintenance Margin Ratio (uniMMR)
Examples of UniMMR Calculation
What is the Unified Maintenance Margin Ratio (uniMMR)
Last updated: 6 Nov 2024

1. What is UniMMR?

The cornerstone of the Portfolio Margin system is the Unified Maintenance Margin Ratio (uniMMR). This ratio is used to assess the overall risk level of a trader's entire portfolio, taking into account the adjusted equity and Maintenance Margin across all positions in the trading accounts in Portfolio Margin.

The Unified Maintenance Margin Amount in Portfolio Margin is the total amount of Maintenance Margin a user needs to hold across all their Portfolio Margin nominated Futures Accounts and Cross Margin Accounts (in US Dollars).
The uniMMR plays a crucial role in risk management, determining if a trader meets the minimum margin requirements. A higher uniMMR indicates a lower risk, while a lower uniMMR signals a higher risk and potential liquidation.

2. How to calculate the UniMMR?

uniMMR = Unified Account Adjusted Equity / Unified Maintenance Margin Amount
To maintain a healthy portfolio, you must keep your uniMMR above a certain threshold. Depending on the uniMMR level, different actions or restrictions may apply, such as receiving margin call reminders, restricting new orders, or even liquidation. Monitoring the uniMMR is essential to avoid liquidation risks and ensure a well-balanced portfolio.
Details of the uniMMR calculation:
ParameterCalculationDescription
uniMMRUnified Account Adjusted Equity / Unified Maintenance Margin Amount
= ∑adjustedEquity / ∑MM
The Unified Maintenance Margin Ratio of the Binance Portfolio Margin Account, calculated as the total adjusted equity divided by the total Maintenance Margin amount.
∑adjustedEquity∑Equity - OpenLoss * assetIndexPriceThe sum of the adjusted equity values of all the Portfolio Margin accounts, where the adjustments take into account the open loss factor.
∑Equity∑min((MarginAsset - MarginLoan + futuresAsset + futuresUnrealPnL) * assetIndexPrice * collateralRate, (MarginAsset - MarginLoan + futuresAsset + futuresUnrealPnL) * assetIndexPrice)The sum of the total equity values of all the Portfolio Margin accounts, including Margin and Futures accounts
∑MM∑Maintenance Margin =∑ futuresMM*assetIndexPrice + ∑MarginMM*assetIndexPrice∑MM is the sum of the Maintenance Margin across all assets in the Portfolio Margin Account
∑futuresMM∑futuresMM = ∑futuresMM_UM + ∑futuresMM_CM
futuresMM_UM = |MMR * Position * MarkPrice| - cum
futuresMM_CM = |MMR * Notional| = |MMR * Amount* contract multiplier| - cum
The total amount of Maintenance Margin or the margin required to maintain margin levels for all Futures positions held in the account (in US Dollars).
∑MarginMM
∑MarginMM = ∑ (Loan * MMR)
The Maintenance Margin Ratio (MMR) varies based on the chosen leverage:*
  • For 3X leverage, the MMR is 10%
  • For 5X leverage, the MMR is 8%
  • For 10X leverage, the MMR is 5%
*Binance reserves the right to adjust these figures if needed. Users will receive notifications of such changes.
The total amount of Maintenance Margin or the margin required to maintain margin levels for all Cross Margin positions held in the account (in US Dollars).
OpenLoss
OpenLoss = ∑qty * price * min(0, side * (collateralRateA - collateralRateB))
where:
  • “side” = 1 for sell order and “side” = -1 for buy order
  • “qty” is the quantity of the base asset
  • “collateralRateA” refers to the quote asset
  • “collateralRateB” refers to the base asset
Open Loss refers to the decrease in Equity Value considered in the uniMMR calculation when there are open Cross Margin orders that involve exchanging a higher collateral rate asset for a lower collateral rate asset.

3. How to calculate the Unified Account Adjusted Equity?

Unified Account Adjusted Equity in Portfolio Margin is the sum of:
  • Account balances of your nominated Futures Accounts,
  • Unrealized profits (if any) minus any unrealized losses (if any), in respect of each position of your USDⓈ-M Futures and COIN-M Futures,
  • Total Assets Value minus Total Liability and Outstanding Interest of your Cross Margin Account
  • Any adjustment due to open loss incurred by the decrease in Equity Value when there are open Cross Margin positions that involve exchanging a higher collateral rate asset for a lower collateral rate asset.
Example of Open Loss calculation
User A holds Bitcoin (BTC) as margin in their account and places an order to buy Cardano (ADA) using BTC. The base asset is ADA, and the quote asset is BTC. BTC has a 95% Collateral Rate, while ADA has a 90% Collateral Rate.
The buy symbol is ADA/BTC. Suppose the buy amount is 500 ADA, and the buy price is 0.001 ADA/BTC. The assetIndexPrice of BTC is 40,000 USD.
The "Open Loss" can be calculated using the below formula:
Open Loss = ∑qty * price * min(0, side * (collateralRateA-collateralRateB))
collateralRateA refers to the quote asset (BTC), and collateralRateB refers to the base asset (ADA).
Open Loss = 500 * 0.001 * min (0,(-1)*(0.95 - 0.9))
Open Loss = 500 * 0.001 * min(0, -0.05)
Open Loss = 500 * 0.001 *(-0.05)
Open Loss = -0.025 BTC
The open loss in USD = -0.025 * 40,000 = -1,000 USD
In this example, the "Open Loss" is 1,000 USD, indicating a potential reduction in Equity Value of $1,000 due to the execution of the ADA-to-BTC buy order, considering their different Collateral Rates.
∑MM (Unified Maintenance Margin Amount) is the total amount of Maintenance Margin or the margin required to maintain margin levels, held across all nominated Futures and Cross Margin Accounts (in US Dollars).

4. What is MaxWithdraw?

MaxWithdraw is the maximum amount of an asset you can withdraw from your Margin account without making your uniMMR go under 105%. It takes into account your wallet balance, virtual available balance, and the required collateral rate to ensure the remaining assets can still cover your positions and maintain the required margin levels.
MaxWithdraw for USDT in the Margin Portfolio Margin account = max(min (margin free asset, virtual available balance / asset index price / collateral rate), 0)
Where:
virtualAvaliable balance = max(∑adjustedEquity-∑IM ,0)

5. What is MaxLoan?

MaxLoan is The maximum Loan you can contract on your Margin Account.

MaxLoan = max(min (virtualMaxLoan / assetIndexPrice, Max_Borrow-Current Loan, 0)
Virtual MaxLoan = (Leverage - 1) * max( virtualAvailable balance,0)
Where:
virtualAvaliable balance = max( ∑adjustedEquity - ∑IM ,0)

6. When do margin calls and liquidation occur?

The following table outlines the uniMMR levels and corresponding status of the Portfolio Margin Account on Binance. UniMMR is considered healthy above 1.2 (120%). Please note that liquidation will take place when UniMMR drops to 1.05 (105%).
uniMMR RangeCorresponding Status
uniMMR > 1.5You can trade freely.
1.2 < uniMMR ≤ 1.5You will receive a reminder to transfer funds to your USDⓈ-M Futures, COIN-M Futures, or Cross Margin Account, repay Margin Loan, or reduce Futures positions.
1.05 < uniMMR ≤ 1.2The system refuses to accept new orders. Binance will still accept new Reduce Order positions. You’re not allowed to increase margin levels.
1 < uniMMR ≤ 1.05Liquidation will take place. Binance will send a liquidation notice.
For more details on the Binance Portfolio Margin Program, please refer to:
Suppose User A has the following margin assets, loan, and open orders.They use a 3x leverage in the Cross Margin mode.
OrderSymbolSidecollateralRateAcollateralRateBQtyPrice
1BTCUSDTBUY0.990.950.140,005 USDT
2ETHUSDTSELL0.990.950.22,102 USDT

1. How to calculate OpenLoss?

We'll calculate User A's OpenLoss using the following formula:
OpenLoss = ∑qty * price * min(0, side * (collateralRateA - collateralRateB))
Where:
  • qty is the quantity of the base asset
  • collateralRateA refers to the quote asset
  • collateralRateB refers to the base asset
  • side = -1 for buy and side = 1 for sell.
Here's a summary of User A's openLoss for each order on Cross Margin:
  • openLoss for order 1 = 0.1 * 40,005 * min(0, -1*(0.99 - 0.95)) = -160.02 USDT
  • openLoss for order 2 = 0.2 * 2,102 * min(0, 1*(0.99 - 0.95)) = 0 USDT
Hence, openLoss = -160.02 + 0 = -160.02 USDT

2. How to calculate Equity, Initial Margin, and Maintenance Margin for the Cross-Margin Account?

Let’s calculate User A’s Equity, Initial Margin (IM), and Maintenance Margin (MM):
AssetMargin AssetMargin LoanEquity = MarginAsset - MarginLoanMargin IMMargin MM
USDT4,000.504,000.500
BTC0.10.040.060.020.004
ETH201557.51.5
MarginIM = MarginLoan / ( leverage - 1 )
*Assume leverage is 3x by default in Cross Margin mode.
∑MarginMM = ∑ (Loan * MMR)
Using this MMR value, we can calculate the Cross-Margin MM for each asset:
  • USDT: Cross Margin MM = 0
  • BTC: Cross Margin MM = 0.004
  • ETH: Cross Margin MM = 1.5
Initial Margin Rate (IMR): IMR is a percentage of the total value of a position that a trader is required to hold as collateral in their account when opening a new trade. It represents the minimum amount of funds that must be deposited to cover potential losses. A higher IMR indicates a lower level of leverage and a larger amount of required collateral.
Maintenance Margin Ratio (MMR): MMR is the minimum percentage of the total value of a position that a trader must maintain in their account to keep the position open after it has been established. It serves as a safety net to ensure that the trader have enough funds to cover potential losses and avoid liquidation. If the account's equity falls below this rate, the position will be liquidated to prevent further losses.

3. How to calculate Equity, Initial Margin, and Maintenance Margin for the USDⓈ-M and COIN-M Futures accounts?

User A also has the following Futures positions, unrealized PnL, and assets in the USDⓈ-M Futures and COIN-M Futures accounts:
Contract typeUSDⓈ-MCOIN-M
SymbolBTCUSDT_PERPBTCUSDT_20220624BTCUSD_PERP
AssetUSDTUSDTBTC
Wallet balance1,999.5 USDT0.1 BTC
MMR bracket0.5%0.5%0.5%
Leverage10x10x10x
IMR10%10%10%
Position quantity0.05 BTC0.04 BTC10,000 USD
Position sideshortlonglong
Entry Price52,000 USDT52,350 USDT50,000 BTC
Mark Price40,000 USDT42,000 USDT40,000 BTC
Unrealized PnL600 USDT-414 USDT-0.05 BTC
Let’s calculate User A’s Equity, IM, and MM (Maintenance Margin) on USDⓈ-M and COIN-M Futures:
ContractEquityIM Calculation*IM ResultMM CalculationMM Result
USDⓈ-M
BTCUSDT_PERP1,999.5 + 186 = 2,185.5 USDT0.05 BTC * 40,000 USDT/BTC * 10% (IMR)200 USDT0.05 BTC * 40,000 USDT * 0.5% (MMR bracket)10 USDT
BTCUSDT_202206240.04 BTC * 42,000 USDT/BTC * 10% (IMR)168 USDT0.04 BTC * 42,000 USDT * 0.5% (MMR bracket)8.4 USDT
COIN-M
BTCUSD_PERP0.05 BTC10,000 USD * 10% (IMR) / 40,000 USDT/BTC0.025 BTC10,000 USDT * 0.5% (MMR bracket) / 40,000 USD0.00125 BTC
*Initial Margin = Notional Position Value / Leverage Level

4. How to calculate the Unified Account Adjusted Equity and Unified Maintenance Margin Amount for each asset?

Knowing that UniMMR = ∑adjustedEquity /∑MM, let’s combine the above calculations to get the Unified Account Adjusted Equity and Unified Maintenance Margin Amount for every asset held in User A’s Cross Margin and Futures accounts:
CoinAsset IndexPriceCollateral RateUnified Adjusted EquityOpenLossUnified Initial Margin AmountUnified Maintenance Margin Amount
USDT1.0010.992,185.5 + 4,000.5 = 6,186160.02200 + 168 = 36810 + 8.4 = 18.4
BTC40,0000.950.06 + 0.05 = 0.11
0.02 + 0.025
= 0.045
0.004 + 0.00125 = 0.00525
ETH2,1000.9557.51.5

5. How to calculate the Unified Account Maintenance Margin Ratio (uniMMR)?

We now have enough data to calculate the uniMMR.
As a reminder, uniMMR = ∑adjustedEquity /∑MM
  • Let’s first calculate the Unified Account Adjusted Equity (∑adjustedEquity):
Unified Account Adjusted Equity = ∑Equity - OpenLoss * assetIndexPrice = (6,186 * 0.99 * 1.001) + (0.11 * 40,000 * 0.95) + (5 * 2,100 * 0.95) - 160.02 * 1.001 = 20,125.08
  • Then, calculate the Unified Maintenance Margin Amount (∑MM):
Unified Maintenance Margin Amount = USDT MM * Asset IndexPrice + BTC MM * Asset IndexPrice + ETH MM * Asset IndexPrice = (18.4 * 1.001) + (0.00525 * 40,000) + (1.5 * 2,100) = 3,378.41
  • We can now calculate the uniMMR:
uniMMR = ( 20,125.08 / 3,378.41) = 5.96 (595.6%)

6. How to calculate the maxWithdraw?

MaxWithdraw is the maximum amount of an asset a user can withdraw from their Margin Account without breaching the required margin levels. It takes into account the user's wallet balance, virtual available balance, and the required collateral rate to ensure the remaining assets can still cover the user's positions and maintain the required margin levels.
Let's calculate the MaxWithdraw for User A:
  • Unified Initial Margin Amount = (368 * 1.001) + (0.045 * 40,000) + (7.5 * 2,100) = 17,918.368
  • Virtual Available Balance = Unified Account Adjusted Equity - sum(Initial Margin) = 2,206.712
  • MaxWithdraw for USDT in the Portfolio Margin account = max(min(margin free asset, virtual available balance / asset index price / collateral rate), 0) = max(min(0, 2,206.712 / 1.001 / 0.99), 0) = max(min(0, 2,226.77), 0) = 0
  • Please note User A also has 1,999.5 USDT in the USDⓈ-M Portfolio Margin Account. If User A had made the fund collection first, the 1,999.5 USDT would have been transferred to the Margin Portfolio Margin Account, in which case User A’s maxWithdraw for USDT in the Portfolio Margin Account = max(min(1,999.5, 2,226.77),0) = 1,999.5 USDT

7. How to calculate the maxLoan amount?

Let's assume User A would like to borrow some BTC. To calculate their maxLoan amount, we can use the following formula:
virtualMaxLoan = (Leverage - 1)*max(virtualAvaliable balance, 0)
=(3 - 1) * (2,206.712, 0) = 4,413.424
MaxLoan for BTC = min (VirtualMaxLoan / assetIndexPrice, MaxBorrow - CurrentLoan) = min(4,413.424/40,000, 10 - 0.04) = 0.11033560
Where:
  • Leverage: 3x
  • virtualAvailable balance: 4,413.424 USDT
  • maxBorrowable of BTC for the user = 10