How do I calculate the maximum amount that I can transfer in/out in Cross and Isolated Margin modes?
Pro Mode (Orderbook Trading)
Cross Margin Mode:
When your wallet balance is not being used for cross collateral, you can use the following two formulas to calculate your maximum amount in Cross Margin mode:
Cross Wallet Balance — ∑ Isolated Open Position Initial Margin — Cross Position Maintenance Margin
For wallets with Unrealized PnL, the maximum withdrawal amount must not exceed the following formula:
Cross Wallet Balance + Σ Cross Unrealized PnL — Σ Cross Initial Margin — Σ Isolated Open Position Initial Margin
Isolated Margin Mode:
Formulas for calculating the maximum asset transfer-in/transfer-out amounts for USDT-M Perpetual Futures:
Maximum transfer-in amount for Isolated Margin:
min (Cross Wallet Balance — ∑ Isolated Open Position Initial Margin — ∑ Cross Position Maintenance Margin, Available Balance)
Maximum transfer-out amount for Isolated Margin:
max (0, min (Isolated Wallet Balance — Isolated Position Maintenance Margin, Isolated Wallet Balance + Size × (Mark Price — Entry Price) — Mark Price × Abs (Size) × Initial Margin Rate)
Last updated