Ejemplo n.º 1
0
 internal Order(Transaction owner, BOOrderConstructParams constructParams, OrderServiceFactoryBase serviceFactory)
     : base(owner, constructParams, serviceFactory)
 {
     if (this.IsOpen)
     {
         this.PayBackPledge = 0m;
         _boOrderSettings   = (BOOrderSettings)_orderSettings;
         _bOBetType         = BOBetTypeRepository.Get(_boOrderSettings.BetTypeId);
         this.CalculateNextHitTime();
         if (this.HitCount > 0)
         {
             _betResult = this.CalculateBetResult(this.BestPrice, this.GetBetDirection(this.HitCount - 1));
         }
     }
 }
Ejemplo n.º 2
0
 internal BOOpenOrderCalculator(Order order, BOOrderSettings settings, BOOpenOrderServiceFactory factory)
     : base(order, settings, factory)
 {
 }