Calculating liquidation price
Learn how to calculate any trade's liquidation price
TradeContainer
{
"trade": {
"user": "0xa110CC27a19f6853e9Aa8Bb8e2C603D7b02ea2df",
"index": "350",
"pairIndex": "103",
"leverage": "45000",
"long": true,
"isOpen": true,
"collateralIndex": "3",
"tradeType": "0",
"collateralAmount": "1938800000",
"openPrice": "47781798348",
"tp": "57338158017",
"sl": "0"
},
"tradeInfo": {
"createdBlock": "72595369",
"tpLastUpdatedBlock": "72595369",
"slLastUpdatedBlock": "72595369",
"maxSlippageP": "0",
"lastOiUpdateTs": "0",
"collateralPriceUsd": "0",
"contractsVersion": "1",
"lastPosIncreaseBlock": "72595369"
},
"liquidationParams": {
"maxLiqSpreadP": "500000000",
"startLiqThresholdP": "900000000000",
"endLiqThresholdP": "650000000000",
"startLeverage": "25000",
"endLeverage": "60000"
},
"initialAccFees": {
"accPairFee": "1461579560",
"accGroupFee": "828216663",
"block": "72595369"
}
}Fee
Context
Calculate liquidation price

Last updated
Was this helpful?