Sharekhan.domain.Instrument.CurrentMarketValue C# (CSharp) Метод

CurrentMarketValue() публичный Метод

public CurrentMarketValue ( IList transactions ) : Price
transactions IList
Результат Price
        public virtual Price CurrentMarketValue(IList<Transaction> transactions)
        {
            Price CurrentPrice = this.CurrentPrice;
            Price value = new Price(0.0);
            int count = 0;

            foreach (Transaction trans in transactions)
            {
                count += trans.EffectiveTransactionQuantity();
            }

            value.Value = count * CurrentPrice.Value;
            return value;
        }