### Calculate Liquidation Price Formula Source: https://docs.trade.xyz/risk-and-margining/liquidation-mechanics This formula calculates the precise liquidation price for a position. It accounts for the current price, the side of the trade, available margin, position size, and maintenance leverage. The maintenance leverage 'l' is derived from the MAINTENANCE_LEVERAGE constant and can vary based on margin tiers for different position values. ```mathematics liq_price = price - side * margin_available / position_size / (1 - l * side) where l = 1 / MAINTENANCE_LEVERAGE ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.