Account Equity Calculation
Account Equity Calculation is the real-time process of determining the net value of a trader's account by summing the collateral value and the unrealized profit or loss of all open positions. This figure is the primary metric used to determine if a trader meets the maintenance margin requirement.
In a cross-margin environment, this calculation is complex because it must account for multiple positions and potentially different collateral assets. Accurate, high-frequency calculation is essential for the protocol to trigger liquidations at the correct time.
Any latency or error in this calculation can result in significant systemic risk. Modern protocols use specialized smart contract functions or off-chain oracles to ensure this value is precise and up-to-date.
It is the fundamental heartbeat of the margin engine. Traders rely on this calculation to monitor their account health and avoid forced liquidations.