public void PriceAndPublishEverything(IPricePublicher pricePublicher, IMarketDataRetriever marketDataRetriever)
 {
     var underlyings = Perimeter.GetPerimeter(_allUnderlyings);
     foreach (var underlying in underlyings)
     {
         var pricingTask = new PricingTask(marketDataRetriever, pricePublicher);
         pricingTask.PriceAndPublish(underlying);
     }
 }
Exemple #2
0
        public void PriceAndPublishEverything(IPricePublicher pricePublicher, IMarketDataRetriever marketDataRetriever)
        {
            var underlyings = Perimeter.GetPerimeter(_allUnderlyings);

            foreach (var underlying in underlyings)
            {
                var pricingTask = new PricingTask(marketDataRetriever, pricePublicher);
                pricingTask.PriceAndPublish(underlying);
            }
        }
Exemple #3
0
 public PricingTask(IMarketDataRetriever marketMarketDataRetriever, IPricePublicher pricePublicher) : this(marketMarketDataRetriever)
 {
     _marketMarketDataRetriever = marketMarketDataRetriever;
     _pricePublicher            = pricePublicher;
 }
 public PricingTask(IMarketDataRetriever marketMarketDataRetriever, IPricePublicher pricePublicher)
     : this(marketMarketDataRetriever)
 {
     _marketMarketDataRetriever = marketMarketDataRetriever;
     _pricePublicher = pricePublicher;
 }