Example #1
0
 private void TryChangeBrokerOrder(PhysicalOrder physical, object origBrokerOrder)
 {
     if (physical.OrderState == OrderState.Active)
     {
         if (debug)
         {
             log.Debug("Change Broker Order: " + physical);
         }
         sentPhysicalOrders++;
         TryAddPhysicalOrder(physical);
         physicalOrderHandler.OnChangeBrokerOrder(physical, origBrokerOrder);
     }
 }
Example #2
0
 public void OnChangeBrokerOrder(PhysicalOrder order, object origBrokerOrder)
 {
     if (debug)
     {
         log.Debug("OnChangeBrokerOrder( " + order + ")");
     }
     CancelBrokerOrder(origBrokerOrder);
     CreateBrokerOrder(order);
     ProcessOrders();
     if (confirmOrders != null)
     {
         confirmOrders.OnChangeBrokerOrder(order, origBrokerOrder);
     }
 }