Offsetting price P&L does not share collateral between venues. Stress-test the equity and maintenance requirement of each account separately.
A funding arbitrage pair can have almost no combined price profit or loss and still lose one leg to liquidation. The reason is simple: two independent margin accounts do not share equity. The winning position cannot support the losing position until usable collateral actually reaches the account that needs it.
This guide works through that problem with a hypothetical pair, derives a liquidation threshold, and calculates a collateral budget for a chosen price stress. It extends our funding arbitrage introduction with a focus on margin rather than the funding spread.
Why a hedged pair can be liquidated
Suppose you buy 0.10 BTC on Venue A and sell 0.10 BTC on Venue B, both at an assumed $100,000 entry price. Each position starts with $10,000 notional and $1,500 collateral in its own independent account. Assume linear USD-settled contracts and a constant 5% maintenance margin fraction on both venues.
All of those inputs are illustrative. In particular, 5% is not a statement of the current BTC maintenance requirement on either exchange. The example excludes fees, funding, collateral price changes and differences between venue marks until we introduce those effects separately.
If both marks rise to $109,000, the long gains $900 while the short loses $900. Total equity remains $3,000, but the distribution changes:
| Common mark price | Long account equity | Short account equity | Maintenance required per leg | Short equity above maintenance |
|---|---|---|---|---|
| $100,000 | $1,500 | $1,500 | $500 | $1,000 |
| $105,000 | $2,000 | $1,000 | $525 | $475 |
| $109,000 | $2,400 | $600 | $545 | $55 |
| $110,000 | $2,500 | $500 | $550 | -$50 |
The last row is a hypothetical valuation if both positions were still open. The short would already have crossed the model's liquidation threshold before $110,000. It is not a portfolio that could necessarily continue holding both legs.
After the short closes, the remaining long is directional exposure. A subsequent price reversal can then hurt the surviving position. The offset in combined P&L does not make either account immune to liquidation.
Calculate the threshold for each leg
Let q be the positive asset quantity, P0 the entry price, P the current risk price, C the starting collateral and m the constant maintenance margin fraction. For the simple long account:
Equity long = C + q × (P − P0)
For the short:
Equity short = C + q × (P0 − P)
In both cases, maintenance is m × q × P. Setting equity equal to maintenance gives the threshold boundary:
Long threshold = (q × P0 − C) / [q × (1 − m)]
Short threshold = (q × P0 + C) / [q × (1 + m)]
With our inputs, the boundaries are approximately $89,473.68 for the long and $109,523.81 for the short. Those are adverse moves of 10.53% down and 9.52% up from entry. Equal starting collateral does not produce symmetric percentage thresholds because maintenance changes with the current notional.
These formulas describe one position per independent account, constant maintenance and stable collateral. Tier changes, other positions and deductions invalidate that simple version. A threshold is also not a guaranteed liquidation fill price.
Check which price actually drives liquidation
The latest trade on a chart may differ from the price used by a venue's risk engine. Hyperliquid's liquidation documentation specifies mark-price-based liquidation. The dYdX Chain explanation describes oracle-based account valuation under its default software settings.
Use the applicable risk price for each leg. Two venues can value the same asset differently during volatility, so the identical-price table above deliberately omits an additional source of risk. A dashboard showing flat combined P&L is not sufficient evidence that both margin accounts have room to absorb a move.
Budget collateral for a price stress
Instead of treating the liquidation boundary as an operating target, choose a hypothetical stress price and an extra equity cushion above maintenance. Include expected account deductions separately.
For a short stressed at a higher price Ps:
Required starting collateral = q × (Ps − P0) + m × q × Ps + cushion + deductions
For a long stressed at a lower price Ps:
Required starting collateral = q × (P0 − Ps) + m × q × Ps + cushion + deductions
Assume a $250 cushion per account and $100 of fees or funding debits per account before the stress is reached:
| Leg and stress | Adverse price P&L | Maintenance at stress | Extra cushion | Deductions | Starting collateral required |
|---|---|---|---|---|---|
| Short at $110,000 | $1,000 loss | $550 | $250 | $100 | $1,900 |
| Long at $90,000 | $1,000 loss | $450 | $250 | $100 | $1,800 |
| Short at $115,000 | $1,500 loss | $575 | $250 | $100 | $2,425 |
| Long at $85,000 | $1,500 loss | $425 | $250 | $100 | $2,275 |
Each row is an independent stress calculation, not a forecast or a recommended position size. For the wider two-sided stress, reserving $2,425 on the short venue and $2,275 on the long venue would require $4,700 total starting collateral under this model. A larger move, higher maintenance fraction or larger deduction would require more.
Do not count the same dollar twice as both committed margin and an immediately usable transfer reserve. When comparing carry with capital committed, include collateral on both venues and any additional reserve. Our APR versus APY guide explains why return on notional differs from return on deployed capital.
Account for funding, margin mode and transfer constraints
A net funding receipt across the pair does not guarantee a receipt on the threatened account. Calculate actual funding debits and credits for each venue. In the example, a $100 deduction from the short's collateral moves its threshold from $109,523.81 to $108,571.43, assuming everything else stays unchanged.
Cross margin can expose shared collateral to other positions; isolated margin limits the collateral assigned to a position. Neither arrangement creates collateral sharing between two independent venues. Hyperliquid's margining documentation also describes transfer requirements, so a winning position's displayed equity should not be treated as an immediately withdrawable balance. Account mode and venue rules matter.
Funding changes, price moves and transfers operate on different timelines. A transfer can be delayed, unavailable or subject to withdrawal constraints while the losing account continues to consume equity. A plan that depends on moving unrealized profits at the last moment has an operational dependency beyond the arithmetic.
Monitor the pair as two accounts
For each leg, record the actual quantity, risk price, account equity, maintenance requirement and equity above maintenance. Include other positions if the account shares collateral. Recalculate after fills, collateral movements and settled funding payments.
Before entering, define a condition for reducing or closing the pair while both legs remain tradable. Check how partial fills or a failed close would change the remaining exposure; placing two orders does not guarantee simultaneous execution.
Use PerpsMania's funding comparison to research rates, then assess the margin accounts separately. Combine this stress calculation with the four-execution cost model to distinguish attractive gross carry from a position whose costs and collateral requirements are workable.
Sources and assumptions
- Hyperliquid: liquidations — risk price and liquidation mechanics.
- Hyperliquid: margining — margin modes and collateral transfer constraints.
- dYdX: liquidations on dYdX Chain — default oracle valuation and maintenance-margin framework.
Sources checked on 30 October 2026. All prices, balances, the 5% maintenance fraction, the $250 cushion and $100 deductions are hypothetical inputs. The calculations assume matched linear USD-settled positions, stable collateral, a constant maintenance tier and no other account positions. They exclude liquidation execution costs, taxes and protocol failure. These scenarios illustrate accounting mechanics; they do not establish a safe leverage level or predict a trading result.
Check your own assumptions
Use the guide as a framework, then inspect the relevant markets and inputs on PerpsMania.
Compare funding rates before modelling marginEducational material, not personalized investment advice. Numerical examples are hypothetical unless explicitly identified as sourced market data. Perpetual trading can result in loss of all posted collateral. Some product pages contain referral links; PerpsMania may benefit when you use them.