public void StartCQG() { // reset the message cllection _messages = null; // EAS will just go into the simulators order book - you can // Delete or modify it _driver = new KTACQG.KTACQG(); _driver.Message += new KaiTrade.Interfaces.Message(OnMessage); _driver.Start(""); System.Threading.Thread.Sleep(100000); }
public void StartCQG() { // reset the message cllection RabbitMQPublisher.RMQFactory.Instance().HostName = CQGTestAppWinForm.Properties.Settings.Default.RMQHostName; var channel = RabbitMQPublisher.RMQFactory.Instance().GetRMQChannel(KaiTrade.Interfaces.MQExchanges.DEFAULT); rmqHelper = new RabbitMQPublisher.RMQ(); _messages = null; // EAS will just go into the simulators order book - you can // Delete or modify it _driver = new KTACQG.KTACQG(); _driver.Message += new KaiTrade.Interfaces.Message(OnMessage); _driver.Facade.GetProductManager().OnProductUpdate += ProductUpdate; _driver.Start(""); //System.Threading.Thread.Sleep(100000); }