Exemple #1
0
        public void AppIDTestCase()
        {
            Thread.Sleep(2000);
            _marketDataEngineClient.Start();
            ManualResetEvent manualAppIDEvent = new ManualResetEvent(false);;

            manualAppIDEvent.WaitOne(3000, false);

            Assert.NotNull(true, _marketDataEngineClient.AppId, "App ID");
            Assert.AreEqual("A00", _marketDataEngineClient.AppId, "App ID Value");
        }
 public void Setup()
 {
     _marketDataEngineClient = new MarketDataEngineClient();
     _orderExecutionEngine   = new OrderExecutionEngineClient();
     _marketDataEngineClient.Start();
     _orderExecutionEngine.Start();
 }
Exemple #3
0
        /// <summary>
        /// Start Market Data Service
        /// </summary>
        public bool StartService()
        {
            try
            {
                if (_isConnected)
                {
                    if (_asyncClassLogger.IsInfoEnabled)
                    {
                        _asyncClassLogger.Info("Historical data service already running.", _type.FullName, "StartService");
                    }

                    return(true);
                }

                // Start MDE-Client
                _dataEngineClient.Start();

                if (_asyncClassLogger.IsInfoEnabled)
                {
                    _asyncClassLogger.Info("Historical data service started.", _type.FullName, "StartService");
                }

                return(true);
            }
            catch (Exception exception)
            {
                _asyncClassLogger.Error(exception, _type.FullName, "StartService");
                return(false);
            }
        }
Exemple #4
0
 public void start()
 {
     _marketDataEngineClient = new MarketDataEngineClient();
     stopwatch = new Stopwatch();
     _marketDataEngineClient.ServerConnected        += _marketDataEngineClient_ServerConnected;
     _marketDataEngineClient.LogonArrived           += _marketDataEngineClient_LogonArrived;
     _marketDataEngineClient.InquiryResponseArrived += _marketDataEngineClient_InquiryResponseArrived;
     _marketDataEngineClient.TickArrived            += TickArrived;
     _marketDataEngineClient.Start();
 }