Пример #1
0
 public FdkConnectLogic(string address, string username, string password)
 {
     Address  = address;
     Username = username;
     Password = password;
     // create and initialize fix connection string builder
     Builder = new FixConnectionStringBuilder
     {
         TargetCompId         = "EXECUTOR",
         ProtocolVersion      = FixProtocolVersion.TheLatestVersion.ToString(),
         SecureConnection     = false,
         Port                 = 5001,
         DecodeLogFixMessages = true,
         Address              = address,
         Username             = username,
         Password             = password,
         FixEventsFileName    = string.Format("{0}.trade.events.log", username),
         FixMessagesFileName  = string.Format("{0}.trade.messages.log", username),
     };
     TradeWrapper = new FdkTradeWrapper();
     //this.Builder.ExcludeMessagesFromLogs = "W";
 }
Пример #2
0
 public FdkConnectLogic(string address, string username, string password)
 {
     Address = address;
     Username = username;
     Password = password;
     // create and initialize fix connection string builder
     Builder = new FixConnectionStringBuilder
     {
         TargetCompId = "EXECUTOR",
         ProtocolVersion = FixProtocolVersion.TheLatestVersion.ToString(),
         SecureConnection = false,
         Port = 5001,
         DecodeLogFixMessages = true,
         Address = address,
         Username = username,
         Password = password,
         FixEventsFileName = string.Format("{0}.trade.events.log", username),
         FixMessagesFileName = string.Format("{0}.trade.messages.log", username),
     };
     TradeWrapper = new FdkTradeWrapper();
     //this.Builder.ExcludeMessagesFromLogs = "W";
 }
Пример #3
0
 private void SetupTradeConnection(string logPath)
 {
     TradeWrapper = new FdkTradeWrapper();
     TradeWrapper.Connect(Address, Username, Password, logPath);
 }
Пример #4
0
        private void SetupTradeConnection(string logPath)
        {
            TradeWrapper = new FdkTradeWrapper();
            TradeWrapper.Connect(Address, Username, Password, logPath);

        }