コード例 #1
0
        //+------------------------------------------------------------------+
        //| Get user info string                                             |
        //+------------------------------------------------------------------+
        public bool GetAccountInfo(UInt64 login, out string str)
        {
            str = string.Empty;
            m_account.Clear();
            MTRetCode res = m_manager.UserAccountRequest(login, m_account);

            if (res != MTRetCode.MT_RET_OK)
            {
                m_manager.LoggerOut(EnMTLogCode.MTLogErr, "UserAccountRequest error ({0})", res);
                return(false);
            }
            //--- format string
            str = string.Format("Balance: {0}, Equity: {1}", m_account.Balance(), m_account.Equity());
            //---
            return(true);
        }