Ejemplo n.º 1
0
 private void InitializeServer()
 {
     SmartComServer               = new StServer();
     SmartComServer.Connected    += new _IStClient_ConnectedEventHandler(SmartComServerConnected);
     SmartComServer.Disconnected += new _IStClient_DisconnectedEventHandler(SmartComServerDisconnected);
     SmartComServer.AddTick      += new _IStClient_AddTickEventHandler(SmartComServerTickAdded);
     //SmartComServer.UpdateQuote += new _IStClient_UpdateQuoteEventHandler(SmartComServerUpdateQuote);
     SmartComServer.AddBar += new _IStClient_AddBarEventHandler(SmartComServer_AddBar);
     SmartComServer.ConfigureClient(SmartComParams);
 }
Ejemplo n.º 2
0
        private void InitializeServer()
        {
            SmartComServer = new StServer();

            SmartComServer.Connected            += new _IStClient_ConnectedEventHandler(SmartComServerConnected);
            SmartComServer.Disconnected         += new _IStClient_DisconnectedEventHandler(SmartComServerDisconnected);
            SmartComServer.UpdatePosition       += new _IStClient_UpdatePositionEventHandler(SmartComServerUpdatePosition);
            SmartComServer.UpdateOrder          += new _IStClient_UpdateOrderEventHandler(SmartComServerUpdateOrder);
            SmartComServer.SetMyOrder           += new _IStClient_SetMyOrderEventHandler(SmartComServerSetMyOrder);
            SmartComServer.OrderSucceeded       += new _IStClient_OrderSucceededEventHandler(SmartComServerOrderSucceeded);
            SmartComServer.OrderFailed          += new _IStClient_OrderFailedEventHandler(SmartComServerOrderFailed);
            SmartComServer.OrderCancelFailed    += new _IStClient_OrderCancelFailedEventHandler(SmartComServerOrderCancelFailed);
            SmartComServer.OrderCancelSucceeded += new _IStClient_OrderCancelSucceededEventHandler(SmartComServerOrderCancelSucceeded);
            SmartComServer.OrderMoveSucceeded   += new _IStClient_OrderMoveSucceededEventHandler(SmartComServerOrderMoveSucceded);
            SmartComServer.OrderMoveFailed      += new _IStClient_OrderMoveFailedEventHandler(SmartComServerOrderMoveFailed);
            SmartComServer.UpdateQuote          += new _IStClient_UpdateQuoteEventHandler(SmartComServerUpdateQuote);
            SmartComServer.AddBar += new _IStClient_AddBarEventHandler(SmartComServer_AddBar);
            SmartComServer.ConfigureClient(SmartComParams);
        }