Skip to content

rinlevan/quickfix-python-samples

Repository files navigation

QuickFIX Python Samples

Author: Rin Le (<rinle.it [a] gmail.com>)
Reference: QuickFIX Configuration Guide


📑 Table of Contents

  1. Requirements
  2. Setup
  3. Running the Project

Requirements


Setup

Install the required dependencies:

pip install -r requirements.txt

Running the Project

Using Docker

  1. Create a .env file in the same directory as the docker-compose.yml file, for example:

    APP_PORT=3000
    WORKING_DIR=/app
  2. Build and run with Docker Compose:

    docker-compose up --build
  3. If you want to provide input directly from the keyboard (interactive mode), use docker exec to open a shell inside the running container. For example:

    docker exec -it <container_name> bash

    Replace <container_name> with the actual name or ID of your running container.

Running via Terminal

⚠️ Important: Start the server first, then start the client.
This is required for QuickFIX to establish a valid FIX protocol connection.
Make sure to edit client.cfg and server.cfg beforehand.

Create Sessions folder for both initiator and acceptor

rm -fr ./Sessions && mkdir -p ./Sessions && chmod 755 ./Sessions

1. Run Server (Acceptor)

cd ./acceptor
python server.py server.cfg

2. Run Client (Initiator)

cd ./initiator
python client.py client.cfg

✅ You are now ready to test the FIX connection between the Client and Server.

About

Implement Initiator and acceptor by quickfix in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published