private void HandlePositionPricingMessage(PositionPricingMessage message)
 {
     foreach (var pos in _portfolioPositions)
     {
         var pricedSecurity = message.PricedSecurities.Find(s => s.Ticker == pos.Ticker);
         pos.UpdateTaxlotSecurities(pricedSecurity);
     }
 }
示例#2
0
        private void HandlePositionPricingMessage(PositionPricingMessage message)
        {
            foreach (var pos in Positions)
            {
                var pricedSecurity = message.PricedSecurities.Find(s => s.Ticker == pos.Ticker);
                pos.UpdateTaxlotSecurities(pricedSecurity);
            }
            RaisePropertyChanged(() => Positions);

            if (message.IsStartup)
            {
                Messenger.Default.Send <ChartRequestMessage>(new ChartRequestMessage(Positions.ToList(), true, false, false));
            }
        }