public static void Main(string[] args)
        {
            if (args.Length != 5)
            {
                Console.WriteLine("Usage MarketDataClient <url> <username> <password> [CFD_DEMO|CFD_LIVE] instrumentId");
                Environment.Exit(-1);
            }

            String      url         = args[0];
            String      username    = args[1];
            String      password    = args[2];
            ProductType productType = (ProductType)Enum.Parse(typeof(ProductType), args[3]);

            do
            {
                Console.WriteLine("Attempting to login to: {0} as {1}", url, username);

                LmaxApi lmaxApi = new LmaxApi(url);

                MarketDataClient marketDataClient = new MarketDataClient(new long[] { Convert.ToInt64(args[4]) });

                lmaxApi.Login(new LoginRequest(username, password, productType), marketDataClient.OnLoginSuccess,
                              failureResponse => Console.WriteLine("Failed to log in"));

                Console.WriteLine("Logged out, pausing for 10s before retrying");
                Thread.Sleep(10000);
            }while (true);
        }
        public static void Main(string[] args)
        {
            if (args.Length != 5)
            {
                Console.WriteLine("Usage MarketDataClient <url> <username> <password> [CFD_DEMO|CFD_LIVE] instrumentId");
                Environment.Exit(-1);
            }

            String url = args[0];
            String username = args[1];
            String password = args[2];
            ProductType productType = (ProductType)Enum.Parse(typeof(ProductType), args[3]);

            do
            {
                Console.WriteLine("Attempting to login to: {0} as {1}", url, username);

                LmaxApi lmaxApi = new LmaxApi(url);

                MarketDataClient marketDataClient = new MarketDataClient(new long[] { Convert.ToInt64(args[4]) });

                lmaxApi.Login(new LoginRequest(username, password, productType), marketDataClient.OnLoginSuccess,
                    failureResponse => Console.WriteLine("Failed to log in"));

                Console.WriteLine("Logged out, pausing for 10s before retrying");
                Thread.Sleep(10000);
            }
            while (true);
            
        }