I searched in here but i didn’t any solution. Although it’s look stupid, i’m following this steps for getting liq price (on test api):
1-) change initial leverage with /fapi/v1/leverage
2-) open position with fapi/v1/order
3-) get position information with /fapi/v2/positionRisk and get “liquidationPrice”
4-) close position with again fapi/v1/order
That’s look very lumberingly. May be an endpoint for this like calculator on web site.
can anyone help me that if know more practice and quick way?
hi @tantialex .
thanks for your response. that’s right. The liquidation price formula is sophisticated.
i will use it but however i suggest a endpoint for this which we use on https://www.binance.com/en/futures/BTCUSDT_PERPETUAL/calculator. i think that will very practice. for example i send type/leverage/price/quantity/balance and receive liq price. i say it should be available when i look other complex operation (like order, withdraw, order book, recent trade list etc…)