The collateral is the amount of funds blocked in the user's margin account when placing an order or increasing the net position. This is the insurance that guarantees the fulfilment of the trader's obligations. Collateral is calculated for each open position and for each standing order.
Calculation of the collateral Cp for positions:
Calculation of the collateral Co for open orders:
Mark price is used for the market orders.