Crypto Perpetual Futures Risk Management: Isolated vs. Cross Liquidation Mechanics
Model mark price, maintenance margin, funding, and collateral separately when replaying perpetual futures.
Backtest Trading Lab Team
Research and education
A perpetual futures position has a margin account in addition to a trade entry and exit. The equity backing it can fall as price moves, as fees accrue, or as other positions lose money. The liquidation engine uses rules defined for the venue, contract, and margin mode. A backtest based solely on the last-traded OHLC series usually lacks enough information to reconstruct an exact liquidation. This guide explains how isolated and cross margin change the scope of risk and how to use conservative modeling in a hypothetical replay.
Distinguish notional, initial margin and maintenance margin
For a simple linear USDT contract, notional is quantity multiplied by price. An illustrative purchase of 0.1 units at 60,000 USDT has 6,000 USDT notional. A simplified initial margin estimate at five times leverage is 1,200 USDT before fees and other requirements. The position's maintenance margin is the amount required to keep it open under the venue's current risk tiers. For illustration only, a flat 0.5% maintenance rate on 6,000 is 30. Real venues can apply tier-specific maintenance deductions, liquidation fees, order reserves and alternative collateral adjustments. When your quantity or price crosses a tier threshold, the required maintenance may change.
Isolated margin keeps the position's collateral in view
In isolated mode, the position uses the collateral allocated to it. Adding or removing isolated margin can change the liquidation threshold. Auto-add settings, funding charges, changes to risk tiers, and the product's matching rules can change the outcome as well. In a simple example, a ten-point move against a quantity of twenty linear units costs 200 in the quote currency before fees. If the isolated position started with 300 in collateral, the equity before maintenance and expenses has dropped to 100. A replay must account for the remaining collateral and its maintenance requirement rather than assuming the trade stays open because price has not touched a discretionary stop.
Cross margin makes the account part of the test
In cross mode, eligible collateral and the unrealized performance of other positions can affect the ability to meet maintenance margin. A standalone BTC trade and the same trade alongside two correlated longs can have different liquidation outcomes. If the portfolio loses value while the BTC mark is unchanged, the apparent buffer may shrink. Keep a time series of each position's marks, fees, and reserves. Synchronize clocks before computing equity. Define the treatment of missing marks. Without a verified cross-account history and matching rules, use portfolio stress scenarios instead of publishing a single exact liquidation price. Shared collateral can cushion one position and simultaneously increase the amount of account equity at risk in a correlated move.
Use mark price for liquidation eligibility
Venues publish a mark price intended for risk calculations, which can differ from the last-traded price visible on a regular candle chart. For example, the last price might trade briefly through an estimated threshold while the mark remains on the safe side. Conversely the mark can reach the threshold while a last-trade candle appears to stop short. Binance and Bybit document mark price and maintenance requirements for their products. When building a replay, keep mark price and the reference for execution in separate fields. If you have mark OHLC but no sequence inside the bar, classify competing event order as ambiguous. A stop configured with a different trigger basis may activate before or after liquidation eligibility.
Model funding and the order of events
Perpetual swaps use periodic funding between positions according to the contract's rules. Funding may be a debit or a credit relative to the trade direction. Record the signed rate, timestamp, and notional convention. If the test keeps a position open through the funding checkpoint, apply the payment consistently and include it in the resulting P&L and collateral. Freeze the funding convention to avoid counting intervals the position did not hold. When funding, fills, and mark checks occur near the same timestamp, order them using the available product documentation or explicitly report the ambiguity. A large adverse slippage scenario is useful even when the base model shows adequate margin.
Run a cost and collateral stress test
Build a baseline with your normal spread and stop execution, then stress the mark-price movement, spread and timing together. Raise the maintenance assumption if the stress scenario could move the position into a higher tier. Compare minimum equity over the life of the position, worst adverse excursion in R, and approximate margin headroom. Repeat for isolated position collateral and for combined cross collateral under a simultaneous move in related positions. An apparent improvement from higher leverage often comes from an unmodeled tail outcome or from treating capital reserved for other positions as freely available. Present the stress result alongside the baseline.
Additional validation
Test one scenario where collateral conversion matters even when the contract price barely moves. If a cross account uses additional eligible assets, a decline or haircut in those assets can reduce collateral available for maintenance. Treat eligible balance and total wallet balance as separate inputs. A paper model that assumes full collateral value may imply more margin headroom than the product offers. Keep the source and date of the rules used in the calculation, because tiers, eligible collateral and fees can change. For a replay using stablecoin balances only, state that assumption and avoid generalizing it to all cross products. When the liquidation model cannot be checked against the required data, publish how much the collateral falls in the stress scenario and present the threshold as a range. That result is easier to audit than an apparently exact number inferred from incomplete account history.
A practical replay checklist
- Verify the contract type, quantity step, mark source, and maintenance tiers.
- Record margin mode and any manual or automatic collateral changes separately.
- Apply fees and funding on the timeline before deciding if a position is eligible to remain open.
- Compare ordinary execution with a stressed market and keep ambiguous event ordering visible.
- Treat the resulting margin estimate as a model and reconcile it with the venue's current specification.
The stop and the margin boundary answer different questions. An execution plan uses a stop to control a planned loss. The margin policy determines when the account ceases to qualify to carry the position. Test the two together and document what the data could actually observe. This gives risk comparisons that remain useful even when the exact live liquidation path cannot be reconstructed.