public static decimal GetTotalCapital(this IMarginTradingAccount account) { return(account.Balance + account.GetUnrealizedDailyPnl() - account.GetFrozenMargin() + account.GetUnconfirmedMargin()); }