Total Balance and Available Balance
Total Balance
Total Balance = Deposits - Withdrawals + Realized P&L
Available Balance
Available Balance = Total Balance - Position Margins - Order Margins + Unrealized P&L
Total Balance = Deposits - Withdrawals + Realized P&L
Available Balance = Total Balance - Position Margins - Order Margins + Unrealized P&L