Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TwsPositionLiquidationController"/> class.
 /// </summary>
 /// <param name="twsConnectionController">The connection controller</param>
 /// <param name="positionsController">The position controller</param>
 /// <param name="nextOrderIdController">The order Id controller</param>
 /// <param name="orderPlacementController">The order placement controller</param>
 /// <param name="portfolioOrderCancellationController">The portfolio order cancellation controller</param>
 public TwsPositionLiquidationController(
     TwsConnectionController twsConnectionController,
     TwsPositionsController positionsController,
     ITwsNextOrderIdController nextOrderIdController,
     TwsOrderPlacementController orderPlacementController,
     TwsPortfolioOrderCancellationController portfolioOrderCancellationController)
 {
     this.connectionController                 = twsConnectionController;
     this.positionsController                  = positionsController;
     this.nextOrderIdController                = nextOrderIdController;
     this.orderPlacementController             = orderPlacementController;
     this.portfolioOrderCancellationController = portfolioOrderCancellationController;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TwsBracketOrderPlacementController"/> class.
 /// </summary>
 /// <param name="connectionController">The connection controller</param>
 /// <param name="nextOrderIdController">The order ID generation controller</param>
 /// <param name="orderPlacementController">The base order placement controller</param>
 public TwsBracketOrderPlacementController(ITwsConnectionController connectionController, ITwsNextOrderIdController nextOrderIdController, ITwsOrderPlacementController orderPlacementController)
 {
     this.connectionController     = connectionController;
     this.nextOrderIdController    = nextOrderIdController;
     this.orderPlacementController = orderPlacementController;
 }