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
Last updated: 14 May 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.
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.
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 * assetIndexPrice
The sum of the adjusted equity values of all the Portfolio Margin accounts, where the adjustments take into account the open loss factor.
∑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).
“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)
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 Range
Corresponding Status
uniMMR > 1.5
You can trade freely.
1.2
You 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
The system refuses to accept new orders. Binance will still accept new Reduce Order positions. You’re not allowed to increase margin levels.
1
Liquidation will take place. Binance will send a liquidation notice.
For more details on the Binance Portfolio Margin Program, please refer to:
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):
Asset
Margin Asset
Margin Loan
Equity = MarginAsset - MarginLoan
Margin IM
Margin MM
USDT
4,000.5
0
4,000.5
0
0
BTC
0.1
0.04
0.06
0.02
0.004
ETH
20
15
5
7.5
1.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:
*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:
Coin
Asset IndexPrice
Collateral Rate
Unified Adjusted Equity
OpenLoss
Unified Initial Margin Amount
Unified Maintenance Margin Amount
USDT
1.001
0.99
2,185.5 + 4,000.5 = 6,186
160.02
200 + 168 = 368
10 + 8.4 = 18.4
BTC
40,000
0.95
0.06 + 0.05 = 0.11
0.02 + 0.025
= 0.045
0.004 + 0.00125 = 0.00525
ETH
2,100
0.95
5
7.5
1.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):
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.
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: