ShareKhan.domain.Portfolio.CurrentMarketValue C# (CSharp) Method

CurrentMarketValue() public method

public CurrentMarketValue ( ) : Price
return Sharekhan.domain.Price
        public Price CurrentMarketValue()
        {
            IList<Symbol> symbolList = Repository.ListAllSymbols<Symbol>();

            Price portfolioPrice = new Price(0.0);

            foreach (Symbol symbol in symbolList)
            {
                portfolioPrice.Value += CurrentMarketValue(symbol).Value;
            }

            return portfolioPrice;
        }

Same methods

Portfolio::CurrentMarketValue ( Symbol symbol ) : Price