Esempio n. 1
0
        public bool Buy(string strWKN)
        {
            WorkDate today = this.RuleEngineInfo.Today;
            Depot    depot = this.RuleEngineInfo.Depot;

            double dPrice    = DBEngine.GetInstance().GetPrice(strWKN, today);
            int    nQuantity = (int)(depot.Cash / dPrice);

            depot.Buy(strWKN, nQuantity, today, dPrice);
            return(true);
        }