Hello. I’m trying to calculate the Liquidation Price for Coin-Margined Futures. I am close to figuring this out but I’m not getting the same liquidation price represented in the UI.
Hello - I’m trying to resolve why my calculation of the liquidation price is different from the UI on binance for the Coin-M Margin Futures.
Here’s an example.
Wallet Balance = 101 BTC
Entry Price of Position = $45,000
Quantity = Long $10,000,000 or 100,000 in contract terms
The Binance Calculator is calculating the Liquidation Price as $33,599.40
My code is calculating it as $33,578.859744834
I’m off by $20.54 but as I try to use this formula on actual positions the numbers can vary and I want to make my calculation close to the actual calculator.
Here’s the reformated formula I’m using because I dont need ALL of the variables since it’s one position in cross margin.
Can someone explain where I’m going wrong?
What exactly is the formula? I tried so many different paths to get the right number but I just can’t get it to match up.