Cross margin trading within a futures mode offers a sophisticated method for managing risk and capital efficiency across various trading products. By consolidating margin requirements, traders can optimize their strategies and potentially enhance returns. This guide delves into the intricacies of this powerful trading approach.
What is Cross Margin Trading?
Cross margin trading is a method where all positions settled with the same cryptocurrency share a unified margin pool. This means assets from spot, margin, futures, perpetual swaps, and options trading are combined. Profits from one position can offset losses in another, providing a holistic risk management framework.
This approach measures the risk of all positions denominated in the same crypto asset collectively. While this maximizes capital efficiency, it also means that if the equity of a specific cryptocurrency becomes insufficient, it could lead to the partial or full liquidation of all positions settled in that asset. For traders seeking to isolate the risk of individual positions, the isolated margin mode is often a more suitable alternative.
Key Asset Metrics in Cross Margin Accounts
Understanding the various metrics that define your account's health is crucial for successful cross margin trading.
Equity
Your equity represents your individual asset balance combined with the floating profit and loss (PnL) from all your positions. It is calculated as the balance in your trading account, plus the PnL from cross margin positions, the margin balance and PnL from isolated positions, and the market value of any options you hold.
Free Margin
This is the amount of a specific cryptocurrency available to use as margin for new trades in futures, perpetual swaps, and options (for short positions). It is derived by taking the greater of zero or the value of your crypto balance in cross margin plus the floating PnL in cross-margin positions, minus any amount already "in use."
Available Balance
Distinct from free margin, the available balance refers to the amount of crypto that can be used for opening isolated margin positions, spot trading, and options (for long positions) trading.
In Use
This metric totals all the cryptocurrency in your trading account that is currently allocated. This includes collateral for open cross orders, active positions, accrued interest, isolated open orders, and any assets being utilized by trading bots.
Floating PnL
This is the sum of the unrealized profit or loss from all your margin, futures, and options positions settled in a particular cryptocurrency. It encompasses both cross and isolated margin positions, providing a snapshot of your current performance before positions are closed.
Leverage
Leverage in this context is calculated for a single cryptocurrency. It is the ratio of your total position value to your available capital (balance in cross positions plus floating PnL in cross margin positions). Position value is calculated differently depending on the product type (e.g., crypto-margined futures vs. USDT-margined futures).
Maintenance Margin Ratio
This is a critical risk assessment indicator for a specific asset in your account. It compares your available assets (balance + PnL - amounts in use for orders/fees) to your total maintenance margin plus estimated liquidation fees. A higher ratio indicates a healthier, lower-risk account.
Total Equity
This represents the total US Dollar value of all cryptocurrencies in your account. Each crypto's equity is converted to USD using OKX's pricing index, providing a fiat-denominated overview of your net worth on the platform.
How Cross Margin Trading Works
In Futures mode, traders can opt for either cross margin or isolated margin. The core principle of cross margin is the shared pool of collateral. All trading products that are settled with the same digital asset (e.g., all BTC-settled trades) contribute to and draw from a single margin balance.
Trading Rules for Cross Margin Mode
- For opening futures, perpetual swaps, options (short positions), and margin trades in cross margin mode, your available free margin for that crypto must be greater than or equal to the order's margin requirement.
- For initiating spot trades or options (long positions) in cross margin mode, your available balance for that crypto must meet or exceed the order's requirement.
👉 Explore advanced margin trading strategies
Practical Example: Order Validation
Imagine a user with a BTC balance of 700 BTC in their cross margin account. They have several existing positions and open orders that total an "In use" amount of 530 BTC. Their floating PnL from cross margin positions is +15 BTC.
Their Free Margin would be: Max(0, 700 + 15 - 530) = 185 BTC.
If this user attempts to open a new margin long position requiring 40 BTC of margin, the order would succeed because 185 BTC > 40 BTC. However, if they tried to open a large futures position requiring 200 BTC of margin, the order would fail because 185 BTC < 200 BTC.
Managing Different Position Types
Margin Positions
In cross margin mode, you can use either token in a trading pair as collateral. For instance, with a BTC/USDT pair, you can choose to use either BTC or USDT as your margin cryptocurrency.
Key Position Fields:
- Assets: The amount of positive assets in the position (excluding the initial margin).
- Liability: The amount borrowed, plus any accrued interest.
- Estimated Liquidation Price: The price at which the position is at risk of liquidation (may not be calculable in all scenarios).
- Initial & Maintenance Margin (IMR/MMR): The required collateral to open and maintain the position, respectively.
Closing Positions: The process for closing a position depends on whether the position assets and the margin crypto are the same.
- When they are the same (e.g., Long with base crypto margin): The available asset to close the position can include not only the position asset but also a portion of your account equity, depending on your overall account health.
- When they are different (e.g., Short with base crypto margin): Only the position assets themselves can be used to close the position. If selling these assets does not cover the liability, the remaining debt is paid from your account equity.
Futures and Perpetual Swap Positions
Cross margin mode supports both One-way and Hedge modes for futures and perpetual swaps.
Key Position Fields:
The calculations for floating PnL, initial margin, and maintenance margin differ between crypto-margined and USDT-margined contracts. It's vital to understand these formulas to accurately assess your risk and potential returns on each position.
Options Positions
You can hold both long and short options positions in cross margin mode.
Key Position Fields:
- Long options positions require no initial or maintenance margin.
- Short options positions have specific margin calculations designed to cover the potential risk of the sold option.
- The options value and floating PnL are calculated based on the mark price and the number of contracts.
Risk Management and Liquidation
The cross margin system employs a two-layer safety net: Order Cancellation by the Risk Control System and Pre-Liquidation Verification.
Order Cancellation by Risk Control System
This is a preventative measure. If your account is deemed risky but not yet at the liquidation threshold, the system will automatically cancel some open orders to bring the account back to a safer risk level. This typically targets orders that would increase your margin usage.
Pre-Liquidation Verification
Liquidation is triggered when the Maintenance Margin Ratio for a cryptocurrency reaches 100%. The system provides an early warning alert when this ratio falls below 300%.
If the ratio hits 100%, the system first cancels a batch of open orders according to predefined rules specific to each business line (futures, margin, options). If the ratio remains at or below 100% after order cancellation, the liquidation process begins.
The liquidation itself is a multi-phase, partial process designed to reduce risk methodically:
- Phase 1: The system liquidates hedged long/short positions in the same contract.
- Phase 2: If Phase 1 is insufficient, the system liquidates positions that are delta-hedged across different products, aiming to keep the account's overall delta exposure stable while reducing risk.
- Phase 3: Finally, if needed, the system liquidates remaining unhedged positions, prioritizing those whose liquidation would most effectively reduce the account's risk profile.
Frequently Asked Questions
What is the main advantage of cross margin trading?
The primary advantage is enhanced capital efficiency. By pooling margin for all positions in the same cryptocurrency, unused margin from one position can support others. This allows for more complex trading strategies without requiring additional capital for each individual trade.
How does cross margin differ from isolated margin?
Cross margin shares a single margin pool across multiple positions, meaning the success or failure of one position can directly impact others. Isolated margin assigns a specific, separate amount of margin to each position, ring-fencing its risk and preventing a loss on one trade from affecting other positions.
What happens if my maintenance margin ratio gets too low?
If your maintenance margin ratio falls below 300%, you will receive a liquidation warning alert. If it reaches 100%, the system will begin canceling your open orders. If it remains at or below 100% after this, the account will enter liquidation, and positions will be partially closed until the ratio is restored above 100%.
Can I use both cross and isolated margin at the same time?
Yes, the Futures mode allows you to operate in both modes simultaneously. You might use cross margin for strategies where you want positions to offset each other and isolated margin for high-risk, speculative trades where you want to strictly define your maximum potential loss.
Is my entire account liquidated if the ratio hits 100%?
Not necessarily. OKX employs a partial liquidation process. The system will methodically close only enough of your positions to bring your maintenance margin ratio back to a safe level, starting with the most risk-offsetting positions first.
Where can I see all these metrics for my account?
All these key metrics—Equity, Free Margin, Maintenance Margin Ratio, etc.—are available through OKX's API under the "Get balance" and "Get position" endpoints. They are also displayed in a summarized format on the trading interface of the platform.
Disclaimer: Digital asset holdings and leveraged trading carry a high level of risk and can result in the loss of your entire investment. Past performance is not indicative of future results. You should carefully consider your financial situation and risk tolerance before engaging in these activities. OKX is not responsible for your trading decisions or potential losses.