public HoldingPerformanceWorkItem(Stock stock)
 {
     HoldingPerformance = new PortfolioPerformanceResponse.HoldingPerformanceItem()
     {
         Stock = stock
     };
     CashFlows = new CashFlows();
 }
 public StockPerformanceItem(PortfolioPerformanceResponse.HoldingPerformanceItem holdingPerformance)
 {
     Stock          = new StockViewItem(holdingPerformance.Stock);
     OpeningBalance = holdingPerformance.OpeningBalance;
     Purchases      = holdingPerformance.Purchases;
     Sales          = holdingPerformance.Sales;
     Dividends      = holdingPerformance.Dividends;
     CapitalGain    = holdingPerformance.CapitalGain;
     ClosingBalance = holdingPerformance.ClosingBalance;
     DRPCashBalance = holdingPerformance.DRPCashBalance;
     TotalReturn    = holdingPerformance.TotalReturn;
     IRR            = holdingPerformance.IRR;
 }