public static void Main(string[] args)
        {
            var loginClient = new HistoricMarketDataRequester();
            if (args.Length != 4)
            {
                Console.WriteLine("Usage " + loginClient.GetType().Name +
                                  " <url> <username> <password> [CFD_DEMO|CFD_LIVE]");
                Environment.Exit(-1);
            }

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

            var lmaxApi = new LmaxApi(url);

            lmaxApi.Login(new LoginRequest(username, password, productType), loginClient.OnLoginSuccess,
                          FailureCallback("log in"));
        }
        public static void Main(string[] args)
        {
            var loginClient = new HistoricMarketDataRequester();

            if (args.Length != 4)
            {
                Console.WriteLine("Usage " + loginClient.GetType().Name +
                                  " <url> <username> <password> [CFD_DEMO|CFD_LIVE]");
                Environment.Exit(-1);
            }

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

            var lmaxApi = new LmaxApi(url);

            lmaxApi.Login(new LoginRequest(username, password, productType), loginClient.OnLoginSuccess,
                          FailureCallback("log in"));
        }