Ejemplo n.º 1
0
        // 请求查询交易员资金帐号
        public override bool GetTradingAccount(QryTradingAccount qry, ref TradingAccount refTradingAccount)
        {
            bool result = false;

            lock (this)
            {
                string szHashId = "fund";
                string szKey    = RunSingleStrategy.StrategyInfo.TraderName;
                byte[] bKey     = Tool.GetBytes(szKey);

                byte[] bValue = Redis.HGet(szHashId, bKey);
                if (bValue != null)
                {
                    string szValue = Tool.GetString(bValue);
                    xmlOpr.Transfer(szValue, ref refTradingAccount);
                    result = true;
                }
            }
            return(result);
        }