The margin widget provides information about your cryptocurrency deposited on BitMEX, your total unrealised profit and loss, and how much leverage you are utilising. These are calculated separately for each relevant cryptocurrency.
Wallet Balance: The sum of deposited cryptocurrency, withdrawn cryptocurrency (both completed and pending), and realised profit or loss. They are calculated separately for each relevant cryptocurrency.
Unrealised PNL: All the unrealised profit or loss coming from your portfolio's open positions. You convert unrealised PNL into realised PNL by closing out a position. Please note that this value is calculated against the Mark price.
Margin Balance: Unrealised PNL + Wallet Balance
Position Margin: The amount of margin that is allocated to open positions. It is calculated as the entry value of all the contracts you hold, divided by the selected leverage, plus unrealised profit and loss.
Order Margin: The minimum amount of equity required to retain your open orders. It is calculated as the value of all open orders divided by the selected leverage.
Available Balance: Margin available for new positions. It is calculated as follows: Available Balance = Margin Balance - Order Margin - Position Margin.
The reference page for the margin terms can be found here: Margin term reference