public void Setup() { _marketDataEngineClient = new MarketDataEngineClient(); _orderExecutionEngine = new OrderExecutionEngineClient(); _marketDataEngineClient.Start(); _orderExecutionEngine.Start(); }
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(); }
public void Setup() { _applicationController = ContextRegistry.GetContext()["ApplicationController"] as ApplicationController; // MqServer mqServer=new MqServer("RabbitMQ.xml",10000, 120000); // _applicationController = new ApplicationController(mqServer,new MessageProcessor(new LiveBarGenerator(new BarFactory.Service.BarFactory()))); if (_applicationController != null) { _applicationController.StartServer(); } _marketDataEngineClient = new MarketDataEngineClient(); }
/// <summary> /// Argument Constructor /// </summary> /// <param name="marketDataEngineClient">MDE-Client for communication with the MDE-Server</param> public HistoricalDataService(MarketDataEngineClient marketDataEngineClient) { _asyncClassLogger = new AsyncClassLogger("HistoricalDataService"); // Set logging level _asyncClassLogger.SetLoggingLevel(); //set logging path _asyncClassLogger.LogDirectory(DirectoryStructure.CLIENT_LOGS_LOCATION); // Initialize objects _subscriptionRequests = new ConcurrentDictionary <string, HistoricDataRequest>(); // Copy reference _dataEngineClient = marketDataEngineClient; // Register required MDE-Client Events RegisterDataEngineClientEvents(); }