Introduction to Margin Trading
Margin trading is a powerful tool that allows traders to amplify their market positions by borrowing funds. In cryptocurrency exchanges, this functionality comes in different modes to accommodate various trading strategies and risk appetites. Understanding these modes is crucial for effective risk management and capital optimization.
Among the most important concepts in margin trading is "isolated margin" (or "逐仓" in Chinese), where a trader allocates a specific amount of collateral to a single position. This approach limits potential losses to that allocated amount, protecting the rest of the portfolio from being liquidated. This guide explores the three primary margin modes supporting isolated trading: single-currency, cross-currency, and portfolio margin.
Understanding the Three Margin Modes
Single-Currency Margin Mode
In single-currency margin mode, your trading power is derived from a single cryptocurrency. When you place an order using isolated margin, the available balance of that specific coin in your account must be greater than or equal to the amount required for that order.
This mode is straightforward: you can only use the base currency of the trading pair as collateral. For example, if you're trading BTC/USDT, your margin must be in BTC for long positions. This simplicity makes it easy to manage but limits flexibility.
Cross-Currency Margin Mode
Cross-currency margin mode offers more flexibility by allowing multiple currencies in your account to serve as collateral for your trades. The system calculates your "total effective margin" across all supported assets.
When placing an isolated margin order in this mode, two conditions must be met:
- Your overall effective margin must be greater than or equal to the margin occupied by all your orders including the new one
- The available balance of the specific currency required for the order must be sufficient
This approach allows for better capital efficiency as unused currencies can contribute to your trading power.
Portfolio Margin Mode
Portfolio margin represents the most advanced approach to margin calculation, assessing risk based on your entire portfolio rather than individual positions. This method considers correlations between different assets, potentially requiring less margin for diversified portfolios.
Similar to cross-currency mode, when using isolated margin in portfolio mode:
- Your overall effective margin must cover all positions including the new order
- The specific currency needed for the trade must be available in sufficient quantity
This sophisticated approach typically offers the highest capital efficiency for experienced traders with diversified portfolios.
Isolated Margin in Leverage Trading
How Isolated Leverage Positions Work
When you open a leveraged position using isolated margin, it appears in your account as a separate isolated position. This isolation means that only the allocated collateral is at risk for that specific trade.
Key components of an isolated leverage position include:
Position Assets: The total positive assets in the position (including margin)
- Long position: Assets are in the base currency
- Short position: Assets are in the quote currency
- Available: Position assets minus any amount occupied by pending close orders
Debt: Initial borrowed amount plus accrued interest
- Long position: Debt is in the quote currency
- Short position: Debt is in the base currency
- Interest: Accrued but not yet deducted interest
Calculating Average Entry Price
The average entry price is calculated as: (Original position × Original entry price + New position × Fill price) / (Original position + New position)
Unlike futures contracts, leverage trading calculates the average entry price using the original position size without subtracting already closed portions. For example:
- First buy 1 BTC at $50,000 → Average price: $50,000
- Sell 0.5 BTC → Position: 0.5 BTC, Average price remains $50,000
- Buy another 1 BTC at $30,000 → Position: 1.5 BTC, Average price: (1 × 50,000 + 1 × 30,000) / (1+1) = $40,000
Key Position Metrics
Liquidation Price:
- Long: (Debt + Interest) × (1 + Maintenance Margin Rate) × (1 + Taker Fee) / Position Assets
- Short: Position Assets / [(Debt + Interest) × (1 + Maintenance Margin Rate) × (1 + Taker Fee)]
Profit/Loss:
- Long: Position Assets - Margin - (Debt + Interest) / Mark Price
- Short: Position Assets - Margin - (Debt + Interest) × Mark Price
- Return Rate: Profit / Initial Margin
- Margin Balance: Initial Margin + Manual additions/reductions
Maintenance Margin:
- Long: (Debt + Interest) × Maintenance Margin Rate / Mark Price
- Short: (Debt + Interest) × Maintenance Margin Rate × Mark Price
Margin Rate:
- Long: [Position Assets - (Debt + Interest) / Mark Price] / (Maintenance Margin + Fees)
- Short: [Position Assets - |Debt + Interest| × Mark Price] / (Maintenance Margin + Fees)
Margin Requirements for Opening Positions
The fundamental principle for opening positions is straightforward:
- Long positions can only use the base currency as margin
- Short positions can only use the quote currency as margin
For example, in BTC/USDT:
- To long BTC with isolated margin, you need BTC in your account
- To short BTC with isolated margin, you need USDT in your account
If you open a 10x long position for 1 BTC at $10,000, you need 0.1 BTC as margin and will borrow $10,000. Before the order fills, no borrowing occurs and no interest accrues, but the margin is reserved.
👉 Explore advanced margin trading strategies
Closing Isolated Margin Positions
Closing Positions from the Position Interface
When closing from your position view, you can use two methods:
Market Close Entire Position:
The system calculates how much of the quote currency is needed to cover your debt (including interest and fees), then sells enough of your position assets at market price to cover this amount. Any remaining assets return to your account balance.
For example, with a long position of 2 BTC and $10,000 debt + $10 interest, the system might calculate needing $10,020. Selling enough BTC at $10,000 would require approximately 1.002 BTC, leaving 0.998 BTC which returns to your account.
Limit Close:
You can specify a price at which to sell your position assets. The system will sell enough to cover your debt, and any excess assets or currency from the transaction returns to your account.
Using the same example, if you sell 0.5 BTC at $10,000, you receive $5,000 (minus fees). After paying $10 interest, $4,985 goes toward the $10,000 debt, leaving $5,015 owed. The position remains with 1.5 BTC assets and $5,015 debt.
Selling another 1 BTC at $10,000 yields $10,000 (minus fees), enough to cover the remaining debt. The position closes, and any remaining assets (0.5 BTC) and excess currency return to your account.
Closing from the Trading Interface
When closing from the trading interface, you have additional options:
Reduce-Only Orders:
These follow the same rules as closing from the position interface - they only reduce your position without opening反向 positions.
Non-Reduce-Only Orders:
If your closing order exceeds your debt, the system will first close your position then open a reverse position with the excess.
For example, with a short position of 2 BTC debt and 30,000 USDT assets:
- Buying 1 BTC at $10,000 uses $10,000 from position assets, reducing debt to 1 BTC
- Buying 1.5 BTC would first close the remaining 1 BTC debt using $10,000
- The extra 0.5 BTC purchase would open a long position, using 0.1 BTC from your account as margin and borrowing $5,000
Isolated Margin in Perpetual and Futures Contracts
Isolated margin trading is also available for perpetual swaps and futures contracts, with two distinct trading modes:
Open/Close Mode (Available for Single/Cross-Currency Isolated Margin)
This mode specifically distinguishes between opening new positions and closing existing ones. It's simpler for beginners to understand and prevents accidentally increasing position size when intending to reduce exposure.
Buy/Sell Mode (Available for All Three Margin Modes)
In this mode, buying always increases exposure and selling always decreases it, regardless of your current position direction. This approach can be more intuitive but requires careful attention to avoid unintended position increases.
Frequently Asked Questions
What is the main advantage of isolated margin trading?
Isolated margin limits your potential losses to the specific amount allocated to a position. This protects your overall account from complete liquidation if a single trade moves against you significantly. It's particularly useful for experimenting with new strategies or trading highly volatile assets.
How does cross-currency margin differ from portfolio margin?
While both use multiple currencies, cross-currency margin calculates requirements based on the sum of your assets, while portfolio margin uses a sophisticated risk model that considers correlations between different assets. Portfolio margin typically offers higher capital efficiency for diversified portfolios but requires more sophisticated risk management.
Can I switch between margin modes after opening a position?
Generally, you cannot change the margin mode for an existing position. You would need to close the position and reopen it under the desired margin mode. Always check your exchange's specific policies regarding mode changes.
What happens if I don't have enough available balance for a new isolated margin order?
Your order will be rejected, and you'll need to either deposit more of the required currency, reduce other positions, or adjust your order size to meet the margin requirements.
How often is interest calculated on borrowed funds?
Interest is typically calculated periodically (often hourly or daily) depending on the exchange's policy. The specific interest rates and calculation methods vary between platforms and market conditions.
Is isolated margin trading suitable for beginners?
While isolated margin limits risk compared to cross-margin, leverage trading overall carries significant risk. Beginners should start with small positions, use lower leverage, and thoroughly understand margin requirements and liquidation mechanics before trading with isolated margin.