Skip to content

About

Spring Boot Starter for QuickFIX/J: This project is a Spring Boot Starter for QuickFIX/J messaging engine for the FIX protocol. It simplifies the configuration required to create and start an Initiator or Acceptor, and handles the lifecycle of the Connector.

Topics

Resources

Contributing

Security policy

Stars

167 stars

Watchers

8 watching

Forks

Repository files navigation

QuickFIX/J Spring Boot Starter

Java CI codecov Maven Central Apache 2 QuickFIX/J 3.0.2 Codacy code quality OpenSSF Scorecard

This project provides Spring Boot auto-configuration and lifecycle management for the QuickFIX/J FIX protocol engine. It can create either a QuickFIX/J Acceptor or Initiator, supply the standard supporting components, and start and stop the connector with the Spring application context.

In starter property names, server means QuickFIX/J Acceptor and client means QuickFIX/J Initiator.

Compatibility

The current release is 4.3.0 for Spring Boot 4.0 and Java 17 or later. The main branch is preparing starter 4.4.x for Spring Boot 4.1. See the compatibility matrix before upgrading between starter lines.

Note

Starter 4.x supports one auto-configured role per application context. If an application needs both an Acceptor and an Initiator, or multiple connectors of one role, use separate child contexts. The reason and planned replacement are described in Migration and ADR 0002.

Quick start

The following example selects FIX 4.4. Replace quickfixj-messages-fix44 with the message artifact required by your sessions.

1. Add the dependencies

Import the starter POM to use its managed QuickFIX/J version, then add the starter and the required FIX message artifact:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.allune</groupId>
            <artifactId>quickfixj-spring-boot-starter</artifactId>
            <version>4.3.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>io.allune</groupId>
        <artifactId>quickfixj-spring-boot-starter</artifactId>
    </dependency>
    <dependency>
        <groupId>org.quickfixj</groupId>
        <artifactId>quickfixj-messages-fix44</artifactId>
    </dependency>
</dependencies>

FIX message artifacts are optional starter dependencies and are not added automatically. This keeps applications free to include only the protocols they use. See Getting started for the complete artifact list and dependency alternatives.

2. Create the application

A regular Spring Boot application is sufficient:

@SpringBootApplication
public class FixApplication {

    public static void main(String[] args) {
        SpringApplication.run(FixApplication.class, args);
    }
}

The starter supplies an Application, MessageStoreFactory, LogFactory, MessageFactory, connector, and lifecycle manager unless the application provides replacements.

3. Choose one role

Acceptor

Add the following application properties:

quickfixj.server.enabled=true
quickfixj.server.config=classpath:quickfixj-server.cfg

Create src/main/resources/quickfixj-server.cfg:

[default]
ConnectionType=acceptor
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
UseDataDictionary=Y

[session]
BeginString=FIX.4.4
SenderCompID=EXECUTOR
TargetCompID=CLIENT
SocketAcceptPort=9876

Initiator

Add the following application properties:

quickfixj.client.enabled=true
quickfixj.client.config=classpath:quickfixj-client.cfg

Create src/main/resources/quickfixj-client.cfg:

[default]
ConnectionType=initiator
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ReconnectInterval=5
SocketConnectHost=localhost
UseDataDictionary=Y

[session]
BeginString=FIX.4.4
SenderCompID=CLIENT
TargetCompID=EXECUTOR
SocketConnectPort=9876

Run the application normally. By default the connector starts with the Spring context, uses in-memory message storage, logs to the screen, and publishes QuickFIX/J callbacks as Spring application events.

Where to go next

  • Getting started — dependency selection, role setup, and the first application.

  • Configuration reference — configuration sources, properties, concurrency, dynamic sessions, placeholders, and inline settings.

  • Customization — application callbacks, bean overrides, and QuickFixJTemplate.

  • Operations and Actuator — endpoints, health indicators, JMX, and endpoint exposure.

  • Migration — compatibility notes and behavior changes between starter versions.

  • Examples — runnable example projects by scenario.

  • Documentation index — all user and maintainer documentation.

QuickFIX/J session settings such as schedules, persistence, validation, networking, and SSL are documented by the upstream QuickFIX/J configuration guide.

Project status and support

The project actively maintains main for Spring Boot 4 and maintains the 3.x branch for compatible high-value and security fixes. See the roadmap, support policy, and contribution guide.

Report suspected security vulnerabilities through the private process in the security policy, not through a public issue.

License and acknowledgement

The QuickFIX/J Spring Boot Starter is released under the Apache License 2.0.

This project includes software developed by the QuickFIX/J project.

About

Spring Boot Starter for QuickFIX/J: This project is a Spring Boot Starter for QuickFIX/J messaging engine for the FIX protocol. It simplifies the configuration required to create and start an Initiator or Acceptor, and handles the lifecycle of the Connector.

Topics

Resources

Contributing

Security policy

Stars

167 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages