Exemplo n.º 1
0
        public void InstanceToString()
        {
            var value = new FixProtocolVersion("xxx", 4, 17);
            var st    = value.ToString();

            Assert.IsTrue("xxx.4.17" == st);
        }
Exemplo n.º 2
0
        static FixConnectionStringBuilder CreateFixConnectionStringBuilder(AccountType type, FixProtocolVersion protocolVersion)
        {
            var result = new FixConnectionStringBuilder
            {
                FixVersion   = "FIX.4.4",
                Address      = "ttdemo.fxopen.com",
                TargetCompId = "EXECUTOR"
            };

            if (type == AccountType.Gross)
            {
                result.Username = "******";
                result.Password = "******";
            }
            else if (type == AccountType.Net)
            {
                result.Username = "******";
                result.Password = "******";
            }
            else if (type == AccountType.Cash)
            {
                result.Address  = "crypto.ttdemo.fxopen.com";
                result.Username = "******";
                result.Password = "******";
            }


            result.ProtocolVersion = protocolVersion.ToString();

#if DEBUG
            result.DecodeLogFixMessages = true;
            result.FixLogDirectory      = @"C:\Temporary\Logs";
#endif

            return(result);
        }
Exemplo n.º 3
0
        static FixConnectionStringBuilder CreateFixConnectionStringBuilder(AccountType type, FixProtocolVersion protocolVersion)
        {
            var result = new FixConnectionStringBuilder
            {
                FixVersion = "FIX.4.4",
                Address = "ttdemo.fxopen.com",
                TargetCompId = "EXECUTOR"
            };

            if (type == AccountType.Gross)
            {
                result.Username = "******";
                result.Password = "******";
            }
            else if (type == AccountType.Net)
            {
                result.Username = "******";
                result.Password = "******";
            }
            else if (type == AccountType.Cash)
            {
                result.Address = "crypto.ttdemo.fxopen.com";
                result.Username = "******";
                result.Password = "******";
            }

            
            result.ProtocolVersion = protocolVersion.ToString();

#if DEBUG
            result.DecodeLogFixMessages = true;
            result.FixLogDirectory = @"C:\Temporary\Logs";
#endif

            return result;
        }
Exemplo n.º 4
0
 public void InstanceToString()
 {
     var value = new FixProtocolVersion("xxx", 4, 17);
     var st = value.ToString();
     Assert.IsTrue("xxx.4.17" == st);
 }
Exemplo n.º 5
0
        public void StaticToString()
        {
            var st = FixProtocolVersion.ToString("xxx", 5, 12);

            Assert.IsTrue("xxx.5.12" == st);
        }