Configuration Reference
=======================
This section provides a complete reference for all FIX-FastTrade configuration options.
Configuration File Format
--------------------------
FIX-FastTrade uses XML configuration files with the following structure:
.. code-block:: xml
Session Configuration
---------------------
Required Fields
~~~~~~~~~~~~~~~
.. list-table::
:header-rows: 1
:widths: 20 15 15 50
* - Field
- Type
- Default
- Description
* - senderCompID
- string
- *required*
- Unique identifier for your system
* - targetCompID
- string
- *required*
- Target system identifier
* - host
- string
- *required*
- FIX server hostname or IP address
* - port
- integer
- *required*
- FIX server port number
Optional Fields
~~~~~~~~~~~~~~~
.. list-table::
:header-rows: 1
:widths: 20 15 15 50
* - Field
- Type
- Default
- Description
* - version
- string
- FIX.4.4
- FIX protocol version
* - heartBtInt
- integer
- 30
- Heartbeat interval in seconds
* - reconnectInterval
- integer
- 5
- Reconnection interval in seconds
* - maxReconnectAttempts
- integer
- 10
- Maximum reconnection attempts
Logging Configuration
---------------------
Basic Logging Options
~~~~~~~~~~~~~~~~~~~~~
.. list-table::
:header-rows: 1
:widths: 20 15 15 50
* - Field
- Type
- Default
- Description
* - level
- string
- INFO
- Global log level (DEBUG, INFO, WARN, ERROR)
* - console
- boolean
- false
- Enable console logging
* - file
- string
- logs/fix-fasttrade.log
- Log file path
Performance Configuration
-------------------------
CPU and Threading
~~~~~~~~~~~~~~~~~
.. list-table::
:header-rows: 1
:widths: 20 15 15 50
* - Field
- Type
- Default
- Description
* - cpuAffinity
- boolean
- false
- Enable CPU affinity
* - cpuMain
- integer
- 0
- CPU core for main thread
* - threadPriority
- integer
- 0
- Thread priority (-20 to 20)
Configuration Examples
----------------------
Minimal Configuration
~~~~~~~~~~~~~~~~~~~~~
.. code-block:: xml
TRADER_001
EXCHANGE
localhost
9878
Production Configuration
~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: xml
PROD_TRADER_001
EXCHANGE_PROD
fix.exchange.com
9878
30
true
WARN
/var/log/fix-fasttrade/fix-fasttrade.log
true
0
-15
For more configuration examples, see the ``config/examples/`` directory in the source distribution.