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


Requirements


Setup

Install the required dependencies:

pip install -r requirements.txt

Start 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.

On Terminal

⚠️ Important: Start the acceptor first, then start the initiator.

Make sure to configure both client.cfg and server.cfg beforehand.

Create Sessions folder for both initiator and acceptor

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

1; Start Server (Acceptor)

cd ./acceptor
python server.py server.cfg

2; Start 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

Packages

No packages published