//return user balance public double GetUserBalance(ulong UserLogin) { List <CIMTUser> result = new List <CIMTUser>(); var requestResult = MTRetCode.MT_RET_ERROR; if (!CheckIfMannagerWorks()) { return(0); } try { var userAccount = m_manager.UserCreateAccount(); requestResult = m_manager.UserAccountGet(UserLogin, userAccount); if (requestResult == MTRetCode.MT_RET_OK) { return(userAccount.Balance()); } else { LogOut($"Error getting user account: user_={UserLogin} error msg={requestResult}"); } } catch (Exception ex) { LogOut($"Error getting user balance: error={ex}"); } return(0); }