# The FIX Server configuration file.
#
# $Revision: 1.8.2.12 $

# The top of the directory tree under which the FIXEdge's configuration,
# and log files are kept.
#
# Do NOT add a slash at the end of the directory path.
# Please specify absolute directory path for NT Service application.
FIXEdge.RootDir = I:/B2Bits/FIXEdge

# The name of FixEdge Service. It name must be unique within single workstation.
FIXEdge.ServiceName = FixEdge1

# The file path where undelivered tasks will be stored. Optional.
# If parameter isn't specified, then saving of tasks will be skipped. 
FIXEdge.TasksStorageFile = FixEdge1/log/UndeliveredMsgs.log

# Determines execution of simultaneous tasks with undelivered events. Optional.
# Default value is 5 workers.
FIXEdge.NumberOfWorkers = 5

# Enumerates custom protocols
FIXEdge.CustomVersions = FIXcustom

# Base FIX version of custom protocol. Required.
FIXEdge.CustomVersion.FIXcustom.BaseProtocol = FIX42

# XML additional fields file that provides protocol customization
FIXEdge.CustomVersion.FIXcustom.AdditionalFieldsFileName = FixEdge1/conf/additionalFieldsFIX42.xml

#------------------------------------------------------------
# Control Centre Section
#------------------------------------------------------------

# Control Centre XML Sock monitoring port to accepts requests on
ControlCentre.XMLSockMonitor.Port = 9211


# File that prevents from starting multiple instances at same 
# directory
ControlCentre.Lock.File.Name = FixEdge1/log/_fixedge.lock

#------------------------------------------------------------
# Business Layer Section
#------------------------------------------------------------

# Business layer routing rules configuration file
BusinessLayer.RoutingRules = FixEdge1/conf/BL_Config.xml


#------------------------------------------------------------
# FIX Layer Section
#------------------------------------------------------------

# This parameter determines the names of FIX session-acceptors. For each
# such a session it is necessary to define the parameters described below.
# The format is 'session.X.ParameterName' where 'X' is the name of session.
FixLayer.FixEngine.Sessions = TestFIXAcceptor

# Path to move log files after the appointed session was closed.
# Warning: directory must exist otherwise the backup procedure will fail.
# Note: Optional.
FixLayer.FixEngine.Sessions.BackupPath = FixEdge1/log/backup

# Default UTC time stamp when FIXEdge starts registered sessions. 
# Used when registered session hasn't StartTime parameter
FixLayer.FixEngine.Sessions.DefaultStartTime = 08:00

# Default UTC time stamp when FIXEdge stops registered sessions
# Used when registered session hasn't TerminateTime parameter
FixLayer.FixEngine.Sessions.DefaultTerminateTime = 23:59

# FIX protocol or custom protocol of the registered session
FixLayer.FixEngine.Session.TestFIXAcceptor.Version = FIXcustom

# Role of the registered session (Acceptor/Initiator)
FixLayer.FixEngine.Session.TestFIXAcceptor.Role = Acceptor

# User name that will be used in Logon message (isn't required)
FixLayer.FixEngine.Session.TestFIXAcceptor.Username = user

# Password that will be used in Logon message (isn't required)
FixLayer.FixEngine.Session.TestFIXAcceptor.Password = foobar

# Value of the SenderCompID tag 
FixLayer.FixEngine.Session.TestFIXAcceptor.SenderCompID = FIXEDGE

# Value of the SenderLocationID tag 
FixLayer.FixEngine.Session.TestFIXAcceptor.SenderLocationID = SLocationId

# Value of the TargetCompID tag 
FixLayer.FixEngine.Session.TestFIXAcceptor.TargetCompID = FIXCLIENT

# Value of the TargetLocationID tag 
FixLayer.FixEngine.Session.TestFIXAcceptor.TargetLocationID = TLocationId

# Value of the EncryptMethod tag, following values supported:
# '0' None / other 
# '1' PKCS (proprietary) 
# '2' DES (ECB mode) 
# '3' PKCS/DES (proprietary) 
# '4' PGP/DES (defunct) 
# '5' PGP/DES-MD5 (see app note on FIX web site) 
# '6' PEM/DES-MD5 (see app note on FIX web site) 
FixLayer.FixEngine.Session.TestFIXAcceptor.EncryptMethod = 0


# Value of incoming sequence number that will be used by created session
FixLayer.FixEngine.Session.TestFIXAcceptor.InSeqNum = 0

# Value of ougoing sequence number that will be used by created session
FixLayer.FixEngine.Session.TestFIXAcceptor.OutSeqNum = 0

# Session description 
FixLayer.FixEngine.Session.TestFIXAcceptor.Description = Just a FIX session for testing

# UTC time stamp when FIXEdge starts registered sessions
FixLayer.FixEngine.Session.TestFIXAcceptor.StartTime = 08:00 

# UTC time stamp when FIXEdge stops registered sessions
FixLayer.FixEngine.Session.TestFIXAcceptor.TerminateTime = 23:59

FixLayer.FixEngine.Session.TestFIXAcceptor.RecreateOnLogout = true
FixLayer.FixEngine.Session.TestFIXAcceptor.IntradayLogoutTolerance = false

# Path to the custom logon file.
# Note that this path is related to the 'FIXEdge.RootDir'.
#FixLayer.FixEngine.Session.TestFIXInitiator.CustomLogonFileName = logon.msg

#CreateUnregisteredAcceptorSession
FixLayer.FixEngine.Sessions = LATENCY_OUT, LATENCY_IN
FixLayer.FixEngine.Session.LATENCY_OUT.SenderCompID = FIXEDGE
FixLayer.FixEngine.Session.LATENCY_OUT.TargetCompID = CLN_I
FixLayer.FixEngine.Session.LATENCY_OUT.Role = Acceptor
FixLayer.FixEngine.Session.LATENCY_OUT.Version = FIX42
FixLayer.FixEngine.Session.LATENCY_OUT.StartTime = 00:00
FixLayer.FixEngine.Session.LATENCY_OUT.TerminateTime = 23:59
FixLayer.FixEngine.Session.SourceIPaddress = 10.1.1.1
FixLayer.FixEngine.Session.LATENCY_OUT.SocketPriority = AGGRESIVE_SEND_AND_RECEIVE
FixLayer.FixEngine.Session.LATENCY_OUT.TcpBufferDisabled = true
FixLayer.FixEngine.Session.LATENCY_OUT.StorageType = persistent

FixLayer.FixEngine.Session.LATENCY_IN.Version = FIX42
FixLayer.FixEngine.Session.LATENCY_IN.Role = Initiator
FixLayer.FixEngine.Session.LATENCY_IN.SenderCompID = FIXEDGE2
FixLayer.FixEngine.Session.LATENCY_IN.TargetCompID = CLN_A
FixLayer.FixEngine.Session.LATENCY_IN.Host = 10.1.1.2       
FixLayer.FixEngine.Session.LATENCY_IN.SourceIPaddress = 10.1.1.1
#FixLayer.FixEngine.Session.LATENCY_IN.Host = 127.0.0.1
FixLayer.FixEngine.Session.LATENCY_IN.Port = 3000
FixLayer.FixEngine.Session.LATENCY_IN.HBI = 60
FixLayer.FixEngine.Session.LATENCY_IN.InSeqNum = 0
FixLayer.FixEngine.Session.LATENCY_IN.OutSeqNum = 0
FixLayer.FixEngine.Session.LATENCY_IN.Description = Session 
FixLayer.FixEngine.Session.LATENCY_IN.RecreateOnLogout = true
#FixLayer.FixEngine.Session.LATENCY_IN.ForceReconnect = true
FixLayer.FixEngine.Session.LATENCY_IN.IgnoreSeqNumTooLowAtLogon = true
FixLayer.FixEngine.Session.LATENCY_IN.ForceSeqNumReset = true
#true
#FixLayer.FixEngine.Session.LATENCY_IN.RejectMessageWhileNoConnection = false
FixLayer.FixEngine.Session.LATENCY_IN.StartTime = 00:00
FixLayer.FixEngine.Session.LATENCY_IN.TerminateTime = 23:59
FixLayer.FixEngine.Session.LATENCY_IN.SocketPriority = AGGRESIVE_SEND_AND_RECEIVE
FixLayer.FixEngine.Session.LATENCY_IN.TcpBufferDisabled = true
FixLayer.FixEngine.Session.LATENCY_IN.StorageType = transient

# Path to the FIX Engine configuration file.
# Note that this path is related to the 'FIXEdge.RootDir'.
FixLayer.FixEngine.Engine.ConfigurationFile = FixEdge1/conf/engine.properties


#------------------------------------------------------------
# Transport Layer Section
#------------------------------------------------------------

#Comma separated list of identifiers of Transport Adapters should be loaded. 
TransportLayer.TransportAdapters = TransportLayer.SmtpTA

#------------------------------------------------------------
# The SMTP Adaptor configuration file.
#------------------------------------------------------------

# Adaptor's name. Property is required 
TransportLayer.SmtpTA.Description = SMTP Transport Adaptor

# Contains path and name of the SMTP adaptor dll. Property is required 
TransportLayer.SmtpTA.DllName = ./bin/SMTPAdaptorDll.dll

# Type of the adaptor library, has contains value 'DLL'. Property is required 
TransportLayer.SmtpTA.Type = DLL

# This parameter determines the names of SMTP clients. For each
# such a client it is necessary to define the parameters described below.
# The format is 'SMTPSession.X.ParameterName' where 'X' is the name of client.
TransportLayer.SmtpTA.SMTPSessions = TestSMTPClient

# SMTP server host. Required when DefaultServerName not defined
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.ServerName = mail.test.com

# SMTP server port. Required when DefaultServerPort not defined
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.ServerPort = 25

# email receiver. Required
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.To = user@test.com;

# email sender. Required when DefaultFrom not defined
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.From = user@test.com;

# email CC receivers. Not required
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.CC = 

# email BCC receivers. Not required
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.BCC = 

# SMTP server connection timeout. Optional.
#TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.SendingTimeout = 10

# SMTP server sending timeout. Optional.
#TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.ConnectionTimeout = 10

# When it true, at FIX EMail message conversation corresponding tags will be 
# used for email Subject and Body, not required 
TransportLayer.SmtpTA.SMTPSession.TestSMTPClient.SmartEmailProcessing = true


#------------------------------------------------------------
# Default log settings section
#------------------------------------------------------------

# Target directory.
# Please specify absolute directory path for NT Service application.
Log.File.RootDir = I:/B2Bits/FIXEdge

# Target devices
Log.Device = File Syslog

# Turns on/off logging on the debug level
Log.DebugIsOn = false

# Turns on/off logging on the notice level
Log.NoteIsOn = false

# Turns on/off logging on the warning level
Log.WarnIsOn = false

# Turns on/off logging on the error level
Log.ErrorIsOn = true

# Turns on/off logging on the fatal level
Log.FatalIsOn = true

# Turns cycling on/off.
Log.Cycling = false

# Number of repeating records to be placed to log before cycling is started.
Log.Cycling.Ignore = 3

# Number of repeating records to be accumulated (hidden) before write the
# "cycle record" to the log.
Log.Cycling.BlockSize = 10

# Multiplier for the Block Size. If BlockSize number of messages is 
# accumulated and the same message still appears then next BlockSize
# is calculated as the previous one multiplied by Multiplier.
Log.Cycling.Multiplier = 10

# File name. If more than one category uses files with the same name
# the same file will be used simultaneously.
Log.File.Name = FixEdge1/log/FixEdge.log

# If true then file will be recreated on each start.
# If false then new records will be appended to the existent file.
Log.File.Recreate = false

# If set to true then buffer will be flushed after each logging call. 
# If set to false then flush is not called.
# Setting to true decreases program performance; setting to false increases 
# a risk of records loss in case of program failure.
Log.File.AutoFlush = true

# It is specifies the event source when FIXEdge starts as Windows Service
Log.EventLog.EventSource=FixEdge_FixEdge1

# Enables rotation in the logs when size limit is reached
Log.File.Rotate = true

# Size of file in bytes. When log file reaches this size it is renamed 
# (follow standard rotation approach) and the new file is created
Log.File.Rotate.SizeLimit = 104857600

# Number of files to be involved in rotation. When the number is exceeded 
# the older file is removed
Log.File.Rotate.FileLimit = 10

# Rotation directory. Directory to store rotated files.
Log.File.Rotate.Dir = FixEdge1/log


Log.FIXEdgeServiceInit.Device = EventLog

# turns on/off logging on certain level
Log.FIXEdgeServiceInit.DebugIsOn = false

# turns on/off logging on certain level
Log.FIXEdgeServiceInit.NoteIsOn = false

# turns on/off logging on certain level
Log.FIXEdgeServiceInit.WarnIsOn = true

# turns on/off logging on certain level
Log.FIXEdgeServiceInit.ErrorIsOn = true

# turns on/off logging on certain level
Log.FIXEdgeServiceInit.FatalIsOn = true

# Tuns cycling on/off. If set to true then repeating records will be 
# controled and replaced with the single one and number of the repetitions
# according to the cyclling paramters
Log.FIXEdgeServiceInit.Cycling = true

# NUmber of repeating records to be placed to log before cycling is started.
Log.FIXEdgeServiceInit.Cycling.Ignore = 3

# Number of repeating records to be accumulated (hidden) before write the
# "cycle record" to the log.
Log.FIXEdgeServiceInit.Cycling.BlockSize = 10

# Multiplier for the Block Size. If BlockSize number of messages is 
# accumulated and the same message still appears then next BlockSize
# is calculated as the previous on emultiplied by Multiplier.
Log.FIXEdgeServiceInit.Cycling.Multiplier = 10

# Root directory for log files. It will be concatenated with
# each file name specified by 'log.File.Name'.
Log.FIXEdgeServiceInit.File.RootDir = I:/B2Bits/FIXEdge

# File name. If more than one category ises files with the same name
# the same file will be used simultaniously.
Log.FIXEdgeServiceInit.File.Name = FixEdge1/log/FIXEdgeServiceInit_test.log

# If true then file will be recreated on each start.
# If false then new records will be appended to the existent file.
Log.FIXEdgeServiceInit.File.Recreate = false

# String that specifies the name of the source. The source name must be a
# subkey of a logfile entry under the EventLog key in the registry. For
# example, "WinApp" is a valid source name if the registry has the following
# key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Event Log\Application\WinApp
Log.FIXEdgeServiceInit.EventLog.EventSource = FixEdge_FixEdge1
