Example #1
0
 public OpeningOrderManager(IOrderPlacer orderPlacer, IRunnerService runnerService, ISleepService sleepService,
                            IOrderPriceFinder orderPriceFinder)
 {
     _orderPlacer      = orderPlacer;
     _runnerService    = runnerService;
     _orderPriceFinder = orderPriceFinder;
     _sleepService     = sleepService;
 }
 public ClosingOrderManager(ISleepService sleepService, IRunnerService runnerService, IOrderPlacer orderPlacer,
                            IClosingStakeCalculator closingStakeCalculator)
 {
     _sleepService           = sleepService;
     _runnerService          = runnerService;
     _orderPlacer            = orderPlacer;
     _closingStakeCalculator = closingStakeCalculator;
 }
Example #3
0
 public QuoterLogic(IOrderPlacer placer, IOrderNotificator notificator, int poolSize)
 {
     _placer                  = placer;
     _notificator             = notificator;
     _buyPortfolio            = new OrderCollection(poolSize);
     _buyPortfolio.Prepared  += OnCollectionPrepared;
     _sellPortfolio           = new OrderCollection(poolSize);
     _sellPortfolio.Prepared += OnCollectionPrepared;
 }