Equity represents the total amount of funds available for trading, including any unrealised gains or losses. Balance is the total amount of funds you can withdraw, excluding any open positions.
Balance = Deposit + Withdrawal + Closed PnL + Fees
Equity = Balance + Floating PnL + Credit