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));
            }
        }