Cross Margin
Last updated
Last updated
Perpetual future health is calculated as follows
where quantity is a negative value for short positions.
For example, lets calculate the maintenance health on a 5 BTC-Perp short position that was entered at $38,000. The price of BTC is now $40,000 and the position has earned $500 in funding:
initialLongWeight = 0.9
maintenanceLongWeight = 0.95
initialShortWeight = 1.1
maintenanceShortWeight = 1.05
Because of these weights, there is a limit to the max leverage a subAccount can achieve on an asset:
So for BTC-Perps, the max initial leverage would be .