コード例 #1
0
        public double GetVWSP(string identifier)
        {
            Stock s      = SampleData.stocks.Where(x => x.Indicator.ToLower() == identifier.ToLower()).FirstOrDefault();
            var   trades = TradesExecuted.GetByIdentifier(identifier);

            if (trades != null)
            {
                return(s.GetVolumeWeightedStockPrice(trades.FirstOrDefault().Value));
            }
            return(0);
        }
コード例 #2
0
 public Dictionary <string, List <Trade> > GetTrades(string identifier)
 {
     return(TradesExecuted.GetByIdentifier(identifier));
 }