PnL Calculation

Formula

Profit and loss measurement in decentralized derivatives requires the aggregation of realized gains against unrealized fluctuations across open positions. Quantifying this outcome involves subtracting the entry cost basis from the current mark-to-market value while accounting for funding rate accruals and transaction fees. Precise tracking of these variables remains essential for maintaining an accurate view of net equity in high-volatility environments.