Пример #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,
         ExcludeMessagesFromLogs = "W",
         DecodeLogFixMessages    = false,
         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
 void SetupTradeConnection(string logPath)
 {
     TradeWrapper = new FdkTradeWrapper();
     TradeWrapper.Connect(Address, Username, Password, logPath);
 }