QuickFIX to FIX Antenna™ C++ Migration Guide
Overview
B2BITS provides FIXAntenna QF add-on package for FIX Antenna™ C++ library which helps to migrate from QuickFIX to FIX Antenna™ C++. The package includes C++ classes that implement the QuickFIX interface. The migration to the FIX Antenna™ engine essentially becomes a replacement of the library. The package also contains tools that help to deal with QuickFIX FIX protocol definition in XML.
FIXAntenna QF Adaptor supports the import of customized dictionaries from QuickFIX. This is done by using an XML conversion tool which is part of the migration package (see Converting customized QuickFIX protocol dictionaries ).
The user migrating to FIX Antenna™ can leverage Certified FIX Connections to major exchanges and ECNs still using the QuickFIX business object model. This is achieved by using a C++ code generator, which is part of the migration package, that can convert B2BITS provided FIX custom protocol definitions into the typed C++ business messages in QuickFIX style (see Generating C++ business objects for standard or customized FIX protocol versions).
Supported QuickFIX features
- Typed C++ message objects and MessageCracker interface
- Transient and persistent FIX session storage
- FIX Session management (schedules)
- 4.x and 5.x FIX protocol versions
- FIX protocol customizations
Features that are not part of the QF adaptor package
The following features are not part of the QF adaptor package. You may consider using the QuickFIX classes instead:
- Database persistence
- Built-in HTTP remote administration. But it is possible to use a rich GUI tool for remote administration: FIXICC
- QuickFIX property names in SessionSettings class. FIX Antenna™ property syntax is supported instead. The static configuration files from QuickFIX are supported (through a conversion tool).
- Dynamic loading of XML dictionaries. The dictionary files should be specified in the configuration file before the engine start.
- The following configuration properties currently not fully supported: StartDay, EndDay , MillisecondsInTimeStamps=N, CheckCompID, CheckLatency, MaxLatency. The options StartTime and EndTime are supported though.
- A number of low-level QuickFIX C++ interfaces related to message store or logging details. The FIX Antenna™ engine library encapsulates its own optimized implementation of these interfaces and hides such low-level details from the user.
Performance Comparison
This section describes performance scenarios and numbers obtained using PerformanceTest application that is part of the migration package (please find the source code at: ...\QFAdaptor\examples\PerformanceTest). The application code is written using the QuickFIX interface, the same source code is used when running the test with QuickFIX and FIX Antenna™ library.
Latency Test
The test application establishes a FIX session on a local host using an instance of ThreadedSocketAcceptor/Initiator class. A FIX message (NewOrderSignle) is repeatedly sent within the session. The time of the FIX message traveling from the sending endpoint to the receiving endpoint is measured and reported. This is the time which is spent between Session::send() call and MessageCracker::onMessage(). FIX session uses a persistent disk message store.
CPU: AMD Phenom II X4 3.0 GHz
Average message latency with FIX Antenna™: 38 mcs (min: 34, max: 276)
Average message latency with QuickFIX: 146 mcs (min: 141, max: 14528)
Conclusion: The message delivery time with FIX Antenna™ QF Adaptor is 3.7 times less than that of the QuickFIX library.
Throughput Test
The test application establishes FIX sessions on a local host using an instance of SocketAcceptor/Initiator class. A FIX message (NewOrderSignle) is repeatedly sent into each of the created sessions. The test ends once all of the 1,000,000 messages are delivered to the receiving endpoint. The test calculates the throughput which is the number of messages delivered per 1 second.
Conclusion: The message throughput of FIX Antenna™ with QF adaptor is over 7 times more than that of the QuickFIX using the single instance of SocketAcceptor/Initiator class that hosts the sessions. With FIX Antenna™ you don’t need to decide how many of the SocketAcceptor instances to launch in order to load your CPU cores with enough work. The scalability is achieved automatically regardless of how the session grouping within particular acceptor/initiator instances.
Migration Step-by-Step
Overview
Typically in order to migrate, you need to do the following steps:
- Install FIX Antenna™
- FIX Antenna™ QF adaptor
- Update your project to include QF adaptor source files and add a QF adaptor initialization call
- Convert QuickFIX configuration files into FIX Antenna™ format
- Compile and run
If you used custom FIX dictionaries: - Convert the dictionaries into FIXDIC format
- An optional extra step: Generate C++ business objects for custom FIX protocol
1. Migration Package Installation
Pre-requisites
In order to use the tools included with the package, ensure the following is installed:
Perl version 5.6 or later. Under Windows, we recommend using the ActivePerl distribution. In order to check that Perl is available, use the following command line:
perl -version
Java 1.5 or higher. In order to check that java is available, use the following command line:
java -version
Note: for Linux the Sun Java or OpenJDK packages are recommended. The “gij (GNU libgcj) 1.4 ” was found to show significantly slower performance with the XML conversion tool.
Microsoft Visual Studio™ and GNU C++ compilers are supported. The version of the compiler should be the same as used by your FIX Antenna™ C++ package.
Installation
- Install FIX Antenna™ C++ package. For information on how to get it please refer to the website.
- Unpack and place the “QFAdaptor” folder with FIX Antenna™ QF adaptor into the FIX Antenna™ installation at "\B2BITS\FIX Antenna C++\<version>".
In the FIX Antenna™ QF Adaptor package, the C++ classes are placed in the “QFA::” namespace. Additional define redirects FIX:: namespace definitions used in user programs to QFA::.
To check that everything works OK, you may compile and run the example application found at "\B2BITS\FIX Antenna C++\<version>\QFAdaptor\examples\PerformanceTest\”. Please follow the instructions below:
Sample Project - Windows
- Open PerformanceTest_vs2010.sln in Microsoft Visual Studio 2010
- Build the solution
- Go to PerformanceTest\bin\config and run config_convert_1session.cmd and config_convert_10session.cmd command files. These commands convert 1session.cfg and 10sessions.cfg configuration files from QuickFIX to FIXAntenna™ format. Output files are placed in the folder “converted”
- Go to the “bin” folder and run run_latency_test.bat, run_throughput_1session.bat, run_throughput_10sessions.bat.
Sample Project - Linux
- Go to the PerformanceTest folder and run ‘make’
- Go to PerformanceTest\bin\config and run config_convert_1session.sh and config_convert_10session.sh command files. These commands convert 1session.cfg and 10sessions.cfg configuration files from QuickFIX to FIXAntenna™ format. Output files are placed in the folder “converted”
- Go to “bin” folder and run run_latency_test.sh, run_throughput_1session.sh, run_throughput_10sessions.sh
2. Updating Your Development Project
This chapter provides step-by-step instructions for changing a project that used QuickFIX C++ library and was created in Microsoft Visual Studio 2010. Similar steps will be necessary in the case of other IDEs or platforms (for example, updating the project’s makefile on Linux).
- Follow the general FIX Antenna™ installation instructions
- Remove the references to QuickFIX include and library folders from your project
- Add the "\B2BITS\FIX Antenna C++\<version>\QFAdaptor\include” and "\B2BITS\FIX Antenna C++\<version>\headers” to your project’s include paths
- Add new library path to the project: "\B2BITS\FIX Antenna C++\<version>\lib”
- Add the all_cpp.cpp file that is located in the folder "\B2BITS\FIX Antenna C++\<version>\QFAdaptor\include\qfa\cpp\all_cpp.cpp” to your project so that they are compiled together with the rest of your project files.
- Link the project with one of the FIX Antenna™ libs in the lib folder depending on release/debug configuration
You may refer to the sample project that is under "\B2BITS\FIX Antenna C++\<version>\QFAdaptor\examples\PerformanceTest\” to see how a project may be set up. Insert a call to initialize the QF adaptor and the instance of the FIX Antenna™ library used by this adaptor before making further calls to it:
QFA::InitializeEngineAdaptor("<path>/qfa.adaptor.properties","<path>/engine.properties");
See the next chapter for the details on producing the .properties files.
At the end of the program, insert a call to shut down the adaptor and the instance of FIX Antenna™ library:
QFA::ShutdownEngineAdaptor();
3. Converting QuickFIX configuration files
The QuickFIX session configuration files are converted into B2BITS format using the "<path>\B2BITS\FIX Antenna C++\<version>\QFAdaptor\tools\migrate_config\qfa_migrate_config.pl” script. In order to use this script, Perl interpreter version 5.6 or later has to be available. Under Windows, we recommend using the ActivePerl distribution.
In order to check the presence and version of Perl, use the following command line:
perl --version
The migration tool consists of the following files:
- qfa_migrate_config.pl – Perl script
- engine.properties.template, qfa.adaptor.properties.template – Template files that are used to produce appropriate output files.
Tool invocation
To convert a QuickFIX.CFG file go to the folder where it resides and invoke the following command:
<path>\QFAdaptor\tools\migrate_config\qfa_migrate_config.pl <command like parameters>
Refer to the “example_conversion.cmd” file in the migrate_config folder to see how the command is used.
Below are the qfa_migrate_config.pl command line parameters:
Usage: qfa_migrate_config.pl <QuickFIX config file> <Engine RootDir setting> [Output directory] Mandatory parameters: "QuickFIX config file" Source file to be converted "RootDir setting" Path to the fix engine root directory where the message store and log files will reside Optional parameters: "Output directory" Where to put the generated configuration files. If omitted, a new folder in current directory will be created.
The script parses the QuickFIX configuration file, maps the QuickFIX settings to the FIX Antenna™ settings, and creates the output file. Notice the ERRORs or WARNINGs messages that may be generated by the conversion script when it fails to produce proper mapping and try to correct the cause.
The conversion script will create the following three files1:
- engine.properties – FIX Antenna™ engine global settings. The path to this file is then passed to the QFA::InitializeEngineAdaptor() call.
- qfa.adaptor.properties – The settings used specifically by the adaptor classes that provide the QuickFIX interface for the user application. The path to this file is passed to the QFA::InitializeEngineAdaptor() call.
- example.qfa.sessions2 – This is the FIX session definition file. There can be multiple files of such kind used by an application. The path to the file is passed to an instance of FIX::SessionSettings class.
1
The produced files can also be used by the FIXEdge server as well without much change in the format. The leading “QFA.” in the property names has to be replaced with an appropriate FIXEdge prefix (refer to this FIXEdge guide).
2
Note that Start/TerminateTimeUTC parameters are currently not supported by FIXEdge, use the parameters that specify a local time instead - Start/TerminateTime
Note that two of the files, engine.properties, and qfa.adaptor.properties, are used globally and are to be passed to the adaptor initialization call. There can be multiple *.qfa.sessions files used by your program and each conversion would produce the engine.properties and qfa.adaptor.properties files. If this is the case, review the produced engine.properties and qfa.adaptor.properties files (compare the file content) and chose the files for the QFA::InitializeEngineAdaptor() call.
IMPORTANT: The following properties of the global engine.properties file are updated by the migration script and are shared between all FIX connections:
- ListenPort – this is the setting copied from SocketAcceptorPort of the QuickFIX configuration file
- EngineRoot – the path used to resolve the log and message store relative paths
- Log.File.RootDir – the path to the additional log folder (set to be <EngineRoot>/logs)
- LogonTimeFrame, LogoutTimeFrame, AllowEmptyFieldValue, MessageMustBeValidated
- standard FIX XML files listed in DictionariesFilesList of engine.properties file
The following properties of the global qfa.adaptor.properties file are updated by the migration script and are shared between all FIX connections:
- Log.File.RootDir – the path to the folder where the QF adaptor stores its own logs (set to be <EngineRoot>/logs)
The following properties in qfa.adaptor.properties are to be set up by the user if necessary:
- new FIX dictionaries (besides standard ones in engine.properties) are listed in QFA.CustomVersion.<name> properties of qfa.adaptor.properties file
Backup FIX Connection
If the QuickFIX configuration file specifies SocketConnectHost1/ SocketConnectPort1 pair, this is converted to the Backup connection properties of the FIX Antenna™ thus enabling to switch to this connection if the primary connection breaks.
Log files to be watched on run-time
After starting the engine, the following log files will be created:
- <EngineRoot>/logs/qfa_engine_<digits>.log – the FIX Antenna™ engine log
- <EngineRoot>/logs/qfa_engine_adaptor.log – the QF adaptor log
- <EngineRoot>/logs/SENDER-TARGET_<digits>.conf – this file will contain the list of actual FIX Antenna™ session settings used when creating particular FIX session identified by <SENDER, TARGET>
4. Converting customized QuickFIX protocol dictionaries for use with FIX Antenna C++ engine
As of the FIX Antenna C++/.NET 2.28.0 release, QuickFIX dictionaries are natively supported.
If your project uses customized FIX protocol definitions, you may convert them into FIXDIC format by using the utility “<path>\QFAdaptor\tools\xml_dict_conversion\dict_convert.cmd”.
After conversion, you can replace the old dictionary with a new one in DictionariesFilesList the engine.properties.
Note that by replacing the standard FIXT11 dictionary all other FIX50 protocol versions are getting affected.
“FIX42 “ and “FIX50SP2“ are the FIX version identifiers that can be passed in string format to API functions that accept “const char* customFIXVersion” parameters, such as FIX::DataDictionary, FIX::Message, etc.
Besides that, the Engine::FIXVersion enumeration can be used to pass constants like FIX42, and FIX50SP2 to functions that accept Engine::FIXVersion parameter type.
Pass the path to QuickFIX XML in the “input_file” parameter and the path to the output file in the “out” parameter.
The produced XML file should then be mentioned in the qfa.adaptor.properties file like below:
# Enumerates custom protocol definitions (this is a comma-separated list) QFA.CustomVersions = FIXcustom # Base FIX version of custom protocol. Required. QFA.CustomVersion.FIXcustom.BaseProtocol = FIX42 # XML additional fields file that provides protocol customization QFA.CustomVersion.FIXcustom.AdditionalFieldsFileName = <path>/ customdict44_engine.xml
The same identifier (e.g. FIXcustom) will be used later in a session configuration file to specify that this particular session is using the FIX dialect, for example, consider example.qfa.sessions file with the following setting:
QFA.Session.CLIENT1@EXECUTOR@FIX42.Version=FIXcustom
Creating Messages in C++ using customized FIX dictionaries
The following are examples of how to create messages using custom dictionaries. The syntax is different compared with QuickFIX.
Example 1. Creating an ExecutionReport message using the session’s FIX dictionary. Depending on what was configured for this session it might be a custom dictionary.
FIX::Session* session = FIX::Session::lookupSession(sessionID); FIX::Message msg( *session, QFA::MsgType_ExecutionReport);
Example 2. Creating an ExecutionReport message using the FIXcustom dictionary configured in the qfa.adaptor.properties file.
FIX::Message msg( "FIXcustomVersion", QFA::MsgType_ExecutionReport); FIX50::Message msg( “FIX50SP2JSE”, QFA::MsgType_ExecutionReport);
Example 3. Creating an ExecutionReport message using the FIXcustom dictionary configured in the qfa.adaptor.properties file and C++ classes generated for this dictionary. See the following chapters for more info:
Generate Message Classes that bind to Custom FIX Protocols and New C++ namespace for custom FIX protocols
FIXcustom::Message msg( QFA::MsgType_ExecutionReport); FIXcustom::ExecutionReport msg( … ); FIX42::ExecutionReport msg( … );
5. Converting customized QuickFIX protocol dictionaries for CPP code generator
Use the utility “<path>\QFAdaptor\tools\xml_dict_conversion\dict_convert_for_cpp.cmd” to convert QuickFIX XML definition into XML format suitable for further use with CPP code generator tool. This .CMD file is an example how to invoke the conversion tool.
6. Generating C++ business objects for standard or customized FIX protocol versions
Note: the CppGenerator.exe application is a Windows executable. When using the Linux version of the QF adaptor package, please unpack it on Windows and run the tool there.
Alternative 1. QuickFIX dictionary XML to CPP conversion
This method is the recommended way of generating CPP classes, it uses QuickFIX dictionaries as the source.
- Go to <path>\QFAdaptor\tools\cpp_code_generator\quickfix-dict folder
- Copy FIX40.xml, FIX41.xml, FIX42.xml, FIX43.xml, FIX44.xml, FIX50.xml, FIX50SP1.xml, FIX50SP2.xml, FIXT11.xml from quickfix/spec folder of your QuickFIX/C++ distribution to quickfix-input folder.
- Add any custom dictionary files you would like to convert to the quickfix-input folder
- Edit the quickfix-to-qfa-to-cpp.cmd file if any custom XMLs are used. Typically you would replace one of the existing FIXnn files with a custom one. Please refer to the following chapter if you would like to keep the base FIXnn version untouched and see your custom FIX protocol as a separate version of FIX protocol with new C++ message classes for business messages: Generate Message Classes that bind to Custom FIX Protocol.
- New C++ namespace for custom FIX protocol
- Run quickfix-to-qfa-to-cpp.cmd command (on Linux use the .sh script)
- Copy the contents of generated “qfa” folder to <path>\QFAdaptor\include\qfa. This will overwrite existing files in this folder.
Alternative 2. FIX Antenna XML to CPP conversion
This method is recommended in the case when one wants to generate the C++ classes for business messages directly out of the FIX Antenna FIXDIC XML dictionaries rather than out of the QuickFIX dictionaries.
The business message C++ classes can be generated from FIX Antenna ™ dictionaries using the <path>\QFAdaptor\tools\cpp_code_generator\qfa-generate.cmd utility (or .sh script on Linux). This command file can be further modified by the user who wants to produce the classes for customized FIX protocols. For example, consider changing the following command line in this .cmd file:
bin\CodeGenerator.exe fixdic-input\fixdic40.xml fixdic-input\fixdic41.xml fixdicinput\ fixdic42.xml fixdic-input\fixdic43.xml fixdic-input\fixdic44.xml fixdicinput\ fixdic50.xml fixdic-input\fixdic50sp1.xml fixdic-input\fixdic50sp2.xml fixdicinput\ fixdict11.xml
and replace the text fixdic-input\fixdic44.xml
with a path to a custom FIX protocol definition. Such a definition can be produced from QuickFIX XML, refer to this chapter for the instructions: Converting customized QuickFIX protocol dictionaries for CPP code generator.
Note that the XMLs for all the FIX versions should be passed to this utility for processing at once (i.e. all files to be passed in the single command line, the code generator is not to be invoked for one individual file) because the code generator has to collect the definitions from all versions of the files to create consolidated lists in output files. This includes definitions for FIX tag numbers, message field values, etc.
After running the command, the “qfa” folder with the .H files is created. Copy the contents to the qfa folder located at: <path>\QFAdaptor\include\qfa
Generate Message Classes that bind to Custom FIX Protocols
When custom FIX protocol XML dictionaries are used, it may be desired to generate CPP message classes that will support the custom fields and groups defined in that dictionary. Then it will be possible to access these fields using get/set methods, for example, message.get( FIX42::MyNewField ).
In contrast to standard FIX 4.x and 5.x protocols, the custom protocols are loaded from XML and registered in the FIX Antenna engine and QFA adaptor. The message classes need also to know how to find the custom dictionary when the message object is created.
The custom FIX protocols are defined in qfa.adaptor.properties file in QFA.CustomVersion… properties. Refer to the chapter for more info: 4. Converting customized QuickFIX protocol dictionaries for use with FIX Antenna C++ engine. The custom protocol is identified by an ID, which is a string, e.g. “CustomFIX44”.
In order to pass this information to the CPP code generator, the “customFIXVer” attribute should be specified for the XML dictionary file that is passed to the tool in <path>\QFAdaptor\tools\cpp_code_generator\quickfix-to-qfato-cpp.cmd:
fixdic-input\fixdic44.xml@customFIXVer=MY_Custom_FIX44@param2=....
where MY_Custom_FIX44 is the name of the custom protocol defined in qfa.adaptor.properties file.
New C++ namespace for custom FIX protocols
By default, the business message C++ classes are created in FIXnn namespace which corresponds to the FIX base protocol version taken from the XML. If you’d like to place your customized protocol classes into a separate distinct namespace, pass the XML file to bin\CodeGenerator.exe command as follows:
fixdicinput\fixdic44.xml@namespace=MY_Custom_FIX44@param2=....
As long as the MessageCracker class cannot distinguish between the base FIX version and your custom version since the BeginString field of the message will contain the base FIX version number, you would have to do the message class conversion on your own, for example, consider modifying <path>\QFAdaptor\include\qfa\MessageCracker.h
like follows:
#include // add this include class MessageCracker : public FIX40::MessageCracker, public FIX41::MessageCracker, public FIX42::MessageCracker, public FIX43::MessageCracker, public FIX44::MessageCracker, public FIX50::MessageCracker, public FIX50SP1::MessageCracker, public FIX50SP2::MessageCracker, public FIXT11::MessageCracker, public MY_Custom_FIX44::MessageCracker // add new class inheritance { public: virtual void crack( const Message& message, const SessionID& sessID) { Engine::FIXVersion ver = message.getMsgVer(); switch(ver) { case Engine::FIX40: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX41: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX42: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX43: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX44: if( sessID.sessionQualifier_ == " || sessID.senderCompID_ == "" ) // or put any other appropriate condition here... return static_cast< MY_Custom_FIX44::MessageCracker*>(this)-> crack( static_cast(message), sessID ); else return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX50: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX50SP1: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIX50SP2: return static_cast(this)-> crack( static_cast(message), sessID ); case Engine::FIXT11: return static_cast(this)-> crack( static_cast(message), sessID ); } }
7. Converting existing B2BITS FIX protocol customizations into QuickFIX C++ business objects
B2BITS can provide you with FIX protocol customizations used to connect to various destinations. Let’s consider the MICEX exchange as an example. There will be the micex_fix.xml file which defines additional fields used in some FIX messages. This file is to be mentioned in QFA.CustomVersions property of qfa.adaptor.properties file.
In order to obtain the C++ classes for customized business messages follow these steps:
- Merge the micex_fix.xml customization with the base protocol, for example FIX44. Use the <path>\QFAdaptor\tools\xml_dict_conversion\dict_merge.cmd command line to do the merging.
- Take the merged XML file and follow the instructions specified in the chapter Generating C++ business objects for standard or customized FIX protocol versions
APPENDIX A. Configuration Reference
engine.properties File
Also refer to the latest version of documentation on the B2BITS web site: engine.properties or documentation in your FIX Antenna™ distribution: <path>\B2Bits\FIX Antenna C++\<version>\doc\index.html
qfa.adaptor.properties File
The corresponding FIXEdge parameters are described in this guide.
Property | Default Value | Description |
---|---|---|
QFA.CustomVersion.<Custom FIXID>.BaseProtocol | Base FIX version of customprotocol. Required | |
Log.File.RootDir | ||
Log.Device | File Console | Target devices |
Log.DebugIsOn | false | Turns on/off logging on the debug level |
Log.NoteIsOn | true | Turns on/off logging on the notice level |
Log.WarnIsOn | true | Turns on/off logging on the warning level |
Log.ErrorIsOn | true | Turns on/off logging on the error level |
Log.FatalIsOn | true | Turns on/off logging on the fatal level |
Log.Cycling | false | Turns cycling on/off. |
Log.Cycling.Ignore | 3 | A number of repeating records to be placed to log before cycling is started. |
Log.Cycling.BlockSize | 10 | A number of repeating records to be accumulated (hidden) before writing the "cycle record" to the log. |
Log.Cycling.Multiplier | 10 | The multiplier for the Block Size. If the BlockSize number of messages is accumulated and the same message still appears then the next BlockSize is calculated as the previous one multiplied by Multiplier. |
Log.File.Name | File name. If more than one category uses files with the same name the same file will be used simultaneously. | |
Log.File.Recreate | false | If true then the file will be recreated on each start. If false then new records will be appended to the current file. |
Log.File.AutoFlush | true | If set to true then the buffer is flushed after each logging call. If set to false then flush is not called. Setting to true decreases program performance; setting to false increases the risk of record loss in the event of program failure. |
qfa.sessions File
Note that this configuration file uses a syntax that is close to that of the FIXEdge product. This is helpful when someone wants to migrate from QuickFIX to FIXEdge. The corresponding FIXEdge parameters are described in "FIX Edge - AdminGuide.html" available in the FIXEdge product installation.
Property | Default Value | Description |
---|---|---|
QFA.Sessions | This parameter determines the names of FIX session-acceptors. For each such session, it is necessary to define the parameters described below. The format is 'session.X.ParameterName' where 'X' is the name of the session. | |
QFA.Session.<Name>.Version | FIX protocol version. Allowed values are FIX40, FIX41, FIX42, FIX43, FIX44, FIX50, FIX50SP1, FIX50SP2, or custom protocol names as specified in qfa.adaptor.properties file | |
QFA.Session.<Name>.Role | Initiator/Acceptor | |
QFA.Session.<Name>.Username | Username for FIX Session authentication | |
QFA.Session.<Name>.Password | Password for FIX Session authentication | |
QFA.Session.<Name>.SenderCompID | SenderCompID (Assigned value is used to identify a firm sending message). | |
QFA.Session.<Name>.TargetCompID | TargetCompID (Assigned value is used to identify a receiving firm). | |
QFA.Session.<Name>.Host | Network address of the computer, to which connection is established. | |
QFA.Session.<Name>.Port | Port's network number on the computer, to which connection is established. | |
QFA.Session.<Name>.HBI | 60 | Time interval (in seconds) between Heartbeat messages. The recommended value is 10 seconds for dedicated connections or private networks. Trading connections via the internet will require calibration. '0' means that no Heartbeat messages will be sent. |
QFA.Session.<Name>.InSeqNum | 0 | The initial incoming sequence number. The first incoming message is expected to have the specified sequence number. The default value will be used when set to zero. |
QFA.Session.<Name>.IntradayLogoutTolerance | false | An option not to reset sequence numbers after a Logout. The party sending a Logout should initiate session recovery by sending a Logon message with SeqNum = + 1; expecting reply Logon withSeqNum = + 1. If a gap is detected, standard message recovery or gap filling processes arise. This property overrides the 'IntradayLogoutTolerance' property in 'engine.properties' for this session. Note : The default value is taken from engine.properties |
QFA.Session.<Name>.OutSeqNum | 0 | The initial outgoing sequence number. The first outgoing message will be sent with the specified sequence number. If '0' then the default value is used. |
QFA.Session.<Name>RejectMessageWhileNoConnection | false | When true, application messages will be rejected, when session unable to send them during specified period or after being disconnected. |
QFA.Session.<Name>.Description | Session's description. | |
QFA.Session.<Name>.StartTime | Local time to start the session (HH:MM). If the start-up time is greater than the specified value then the session will be started immediately. Note: this property is optional. | |
QFA.Session.<Name>.TerminateTime | Local time to terminate this session (HH:MM). If the start-up time is greater than the specified value then the value will take effect. Note: this property is optional. | |
QFA.Session.<Name>.StartTimeUTC | Start time in UTC | |
QFA.Session.<Name>.TerminateTimeUTC | Terminate time in UTC | |
QFA.Session.<Name>.SourceIPaddress | localhost | The expected value of the source IP address. If the real value is not equal to the expected one then the session is disconnected without sending a message and an error condition is generated in the log output. |
QFA.Session.<Name>.RecreateOnLogon | Initiator: true | If set to true and an attempt to connect fails, QFA adaptor will continue to ask the FIX Engine to establish the connection until it is successfully done. |
QFA.Session.<Name>.RecreateOnLogout | Initiator: false | If set to false then session is removed from the list of sessions after successful disconnection. If set to true then it will be recreated after disconnection. Note : recreation will take place only if disconnection is initialized by the counterparty. |
QFA.Session.<Name>.ReconnectInterval | 30 | Time interval at which the ReconnectOnLogon/Logout attempts will be made for session initiators. For acceptors it is always set to 0 meaning to repeat immediately. So for example an acceptor with RecreateOnLogout=true is reacreated and is ready for a new connection right after the logout. |
QFA.Session.<Name>.ForceReconnect | true | Extends the session connection retry mechanism in the FIX Engine to the logon attempts. The engine will try to establish a connection if the remote endpoint is not available. Without this settings, the engine reconnects only when an already established session breaks. The number of retry attempts is specified in the Reconnect.MaxTries setting of the engine.property file. The time interval is set by the Reconnect.Interval property in the same file. With this setting enabled, the connection may switch to backup connection at the logon time, if the primary endpoint is not available. |
QFA.Session.<Name>. SenderLocationID | FIX tag 142 - assigned value used to identify specific message originator's location (i.e. geographic location and/or desk, trader). | |
QFA.Session.<Name>. TargetLocationID | FIX tag 143 | |
QFA.Session.<Name>. ForceSeqNumReset | 0 | This parameter allow to automatically resolve sequence gap problem. When mode is ON session uses 141(ResetSeqNumFlag) tag in sending/confirming Logon message to reset SeqNum at the initiator or acceptor. "0" - Disable ForceSeqNumReset mode "1" - Enable SeqNum reset at first time of session initiation "2" - Enable SeqNum reset for every session initiation |
QFA.Session.<Name>. ResetSeqNumAtScheduledStartTime | false | Perform FIX session sequence numbers at the scheduled session’s start time (do so when the session happens to be still alive at the scheduled time) |
QFA.Session.<Name>. IntradayLogoutTolerance | true | If true, don’t reset sequence numbers on logout |
QFA.Session.<Name>. KeepConnectionState | false | When true, primary to backup (and back) connection switching continue using existing message storage |
QFA.Session.<Name>. SocketPriority | EVEN | EVEN – use a pool of worker threads for network I/O AGGRESSIVE_SEND_AND_RECEIVE – use dedicated thread for network I/O to achieve a minimal latency. It is set to true by the ThreadedSocketAcceptor/Initiator automatically, but may be overridden in the configuration file |
StorageType | persistent | Type of the message storage to use. persistent – disk storage transient – in-memory storage Appropriate value is chosen by the FileStore/MemoryStoreFactory, but may be overridden in the configuration file. |
QFA.Session.<Name>. EncryptMethod | 1 - NONE | |
QFA.Session.<Name>. TcpBufferDisabled | false | If true, the Nagle algorithm on TCP/IP connection is disabled to achieve the minimal latency of message sending. It is set to true by the ThreadedSocketAcceptor/Initiator automatically, but may be overridden in the configuration file |
QFA.Session.<Name>. IgnoreSeqNumTooLowAtLogon | This parameter allows to resolve ‘seqNum too low’ problem at logon. When true - session continues with the received seqNum. | |
QFA.Session.<Name>. Backup.Host | Host name to be used for a backup FIX connection (valid for session initiators) | |
QFA.Session.<Name>. Backup.Port | Port number to be used for backup FIX connection (valid for session initiators) | |
QFA.Session.<Name>. Backup.HBI | Backup session setting. | |
QFA.Session.<Name>. Backup.SenderSubID | Backup session setting. | |
QFA.Session.<Name>. Backup.TargetSubID | Backup session setting. | |
QFA.Session.<Name>. Backup.SenderLocationID | Backup session setting. | |
QFA.Session.<Name>. Backup.TargetLocationID | Backup session setting. | |
QFA.Session.<Name>. Backup.IntradayLogoutTolerance | Backup session setting. | |
QFA.Session.<Name>. Backup.ForceSeqNumReset | Backup session setting. | |
QFA.Session.<Name>. Backup.ForceReconnect | Backup session setting. | |
QFA.Session.<Name>. Backup.IgnoreSeqNumTooLowAtLogon | Backup session setting. | |
QFA.Session.<Name>. Backup.EnableAutoSwitchToBackupConnection | When true, automatic switch mode is enabled. By default automatic switch mode is disabled. | |
QFA.Session.<Name>. Backup.EnableCyclicSwitchBackupConnection | When true, connection will be switched from primary to backup and back until connection will be established. | |
QFA.Session.<Name>. ActiveConnection | primary | backup - The session connects via backup connection |
QFA.Session.<Name>.CustomLogonFileName | Path to the file containing FIX Logon message that will be sent to the counterparty when initiating the connection. The message is in binary format. If a relative path is specified, the root folder is taken from the engine.properties EngineRoot setting |