1. What is UniMMR?
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?
Parameter | Calculation | Description |
uniMMR | Unified 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 * assetIndexPrice | The 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:*
*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:
| 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?
- 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.
4. What is MaxWithdraw?
5. What is MaxLoan?
MaxLoan = max(min (virtualMaxLoan / assetIndexPrice, Max_Borrow-Current Loan, 0)
6. When do margin calls and liquidation occur?
uniMMR Range | Corresponding Status |
uniMMR > 1.5 | You can trade freely. |
1.2 < uniMMR ≤ 1.5 | 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 < uniMMR ≤ 1.2 | The 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.05 | Liquidation will take place. Binance will send a liquidation notice. |
- Introduction to Binance Portfolio Margin Mode
- How to Activate the Portfolio Margin Mode on Binance
- How to View Portfolio Margin Information from Your Binance Account and Trading Interface
- Binance Portfolio Margin Trading Rules
- How Does Liquidation Work in the Binance Portfolio Margin Account
- Binance Portfolio Margin Mode Order Logic
- Auto Fund Transfer Functions and Interest Rates in the Binance Portfolio Margin Mode
- Binance Portfolio Margin Mode Supported Collateral and Rates
- Binance Portfolio Margin API
- Terms and Conditions of Binance Portfolio Margin
Order | Symbol | Side | collateralRateA | collateralRateB | Qty | Price |
1 | BTCUSDT | BUY | 0.99 | 0.95 | 0.1 | 40,005 USDT |
2 | ETHUSDT | SELL | 0.99 | 0.95 | 0.2 | 2,102 USDT |
1. How to calculate OpenLoss?
- 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.
- 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
2. How to calculate Equity, Initial Margin, and Maintenance Margin for the Cross-Margin Account?
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 |
- USDT: Cross Margin MM = 0
- BTC: Cross Margin MM = 0.004
- ETH: Cross Margin MM = 1.5
3. How to calculate Equity, Initial Margin, and Maintenance Margin for the USDⓈ-M and COIN-M Futures accounts?
Contract type | USDⓈ-M | COIN-M | |
Symbol | BTCUSDT_PERP | BTCUSDT_20220624 | BTCUSD_PERP |
Asset | USDT | USDT | BTC |
Wallet balance | 1,999.5 USDT | 0.1 BTC | |
MMR bracket | 0.5% | 0.5% | 0.5% |
Leverage | 10x | 10x | 10x |
IMR | 10% | 10% | 10% |
Position quantity | 0.05 BTC | 0.04 BTC | 10,000 USD |
Position side | short | long | long |
Entry Price | 52,000 USDT | 52,350 USDT | 50,000 BTC |
Mark Price | 40,000 USDT | 42,000 USDT | 40,000 BTC |
Unrealized PnL | 600 USDT | -414 USDT | -0.05 BTC |
Contract | Equity | IM Calculation* | IM Result | MM Calculation | MM Result |
USDⓈ-M | |||||
BTCUSDT_PERP | 1,999.5 + 186 = 2,185.5 USDT | 0.05 BTC * 40,000 USDT/BTC * 10% (IMR) | 200 USDT | 0.05 BTC * 40,000 USDT * 0.5% (MMR bracket) | 10 USDT |
BTCUSDT_20220624 | 0.04 BTC * 42,000 USDT/BTC * 10% (IMR) | 168 USDT | 0.04 BTC * 42,000 USDT * 0.5% (MMR bracket) | 8.4 USDT | |
COIN-M | |||||
BTCUSD_PERP | 0.05 BTC | 10,000 USD * 10% (IMR) / 40,000 USDT/BTC | 0.025 BTC | 10,000 USDT * 0.5% (MMR bracket) / 40,000 USD | 0.00125 BTC |
4. How to calculate the Unified Account Adjusted Equity and Unified Maintenance Margin Amount for each asset?
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)?
As a reminder, uniMMR = ∑adjustedEquity /∑MM
- Let’s first calculate the Unified Account Adjusted Equity (∑adjustedEquity):
- Then, calculate the Unified Maintenance Margin Amount (∑MM):
- We can now calculate the uniMMR:
6. How to calculate the maxWithdraw?
- 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?
- Leverage: 3x
- virtualAvailable balance: 4,413.424 USDT
- maxBorrowable of BTC for the user = 10