private IMoney GetRevenueFromHoldingSell(int Quantity, string Ticker) { IMoney GAA = GetGAAFromHolding(Quantity, Ticker); if (GAA == null) { throw new Exception("Not possible, not enough number of stocks"); } //calculate revenue from the current ticker Quote HoldingQuote = ImperaturGlobal.Quotes.Where(q => q.Symbol.Equals(Ticker)).First(); return(HoldingQuote.LastTradePrice.Multiply(Quantity).Subtract(GAA.Multiply(Quantity))); }