Pure Python FIX protocol engine
Project description
Pure Python FIX protocol engine — mirrors the QuickFIX architecture (QuickFIX/n, QuickFIX/J).
Features
- Full FIX 4.2 session layer (Logon, Logout, Heartbeat, TestRequest, ResendRequest, SequenceReset, Reject) with gap-fill, out-of-order buffering, hard-reset recovery, and logon/logout timeouts
- Hardened session recovery: byte-faithful resend (repeating groups survive replay), automatic ResendRequest retry for stalled gaps, duplicate-connection refusal, and spec-compliant
Rejects for malformed admin fields instead of dropped connections - Message encode/decode (checksum, BodyLength, field-order validation) and repeating groups
- Opt-in per-session validation against a QuickFIX
DataDictionary— required fields and out-of-range enum values, with spec-compliantRejects - Async transport:
SocketAcceptor+SocketInitiatorwith auto-reconnect - Session schedules (
StartTime/EndTime/StartDay/EndDay/TimeZone) — daily or weekly active windows with sequence reset at each new period - Durable
FileStore(fsync + atomic sequence-number writes) andMemoryStore MessageCrackerdispatch mixin- Lightweight browser GUI via aiohttp (
fixcore-gui) — session management, message builder, live message log
Quick start
pip install fixcore-engine
pip install "fixcore-engine[gui]" # includes aiohttp for the GUI
Validation (opt-in)
Validation is off by default (raw FIX passthrough). Enable it per session via QuickFIX-compatible settings:
[SESSION]
UseDataDictionary=Y ; load the spec: group-aware decode + (by default) validation
DataDictionary=FIX44.xml ; bundled spec name (FIX40/41/42/43/44.xml), or a path to your own
ValidateIncomingMessage=N ; keep group-aware decode but DON'T reject non-conforming inbound (default Y)
ValidateFieldsOutOfRange=Y ; also reject out-of-range enum values (e.g. Side=Z)
UseDataDictionary=Y loads the spec so repeating groups decode into proper
instances. By default it also validates inbound app messages (required fields,
known MsgType) and Rejects violations. Set ValidateIncomingMessage=N to keep
the group-aware decode while delivering non-conforming messages as-is — useful
for permissive/testing peers that need to inspect off-spec traffic rather than
reject it.
Configuration
Every recognised setting (identity, connection, timers, sequence reset, session schedules, validation) is documented in docs/configs.md. Session-schedule semantics and edge cases are in docs/session-schedule.md.
Development
pip install -e ".[dev,gui]"
pytest
fixcore-gui
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fixcore_engine-0.10.0.tar.gz.
File metadata
- Download URL: fixcore_engine-0.10.0.tar.gz
- Upload date:
- Size: 203.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
113557c0e45e2c5b4b30570371b112c4f7751835b1b4a7a99412945fe862184c
|
|
| MD5 |
8ce7665299204fdfa3674b3c3141c5e7
|
|
| BLAKE2b-256 |
a91237f6e4f5ad3b140dd5e628e1b31280eeefb6bb8a109930b2f376b261a355
|
Provenance
The following attestation bundles were made for fixcore_engine-0.10.0.tar.gz:
Publisher:
publish.yml on aidan-chisholm/fixcore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fixcore_engine-0.10.0.tar.gz -
Subject digest:
113557c0e45e2c5b4b30570371b112c4f7751835b1b4a7a99412945fe862184c - Sigstore transparency entry: 1966970762
- Sigstore integration time:
-
Permalink:
aidan-chisholm/fixcore@18f09c9e861bf60ce78cb015714007633a181a58 -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/aidan-chisholm
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@18f09c9e861bf60ce78cb015714007633a181a58 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fixcore_engine-0.10.0-py3-none-any.whl.
File metadata
- Download URL: fixcore_engine-0.10.0-py3-none-any.whl
- Upload date:
- Size: 175.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15a4f73050dbaef45ac93af06ae4c97286cbc476fefa97df3c0d0af3e7f5f8c5
|
|
| MD5 |
1137eca9ba398aa705db0c1df0ec5bbc
|
|
| BLAKE2b-256 |
73fee593ca6cc845b880eaa7af069de58c3f99604c12c1ba72e51d26309fc21f
|
Provenance
The following attestation bundles were made for fixcore_engine-0.10.0-py3-none-any.whl:
Publisher:
publish.yml on aidan-chisholm/fixcore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fixcore_engine-0.10.0-py3-none-any.whl -
Subject digest:
15a4f73050dbaef45ac93af06ae4c97286cbc476fefa97df3c0d0af3e7f5f8c5 - Sigstore transparency entry: 1966971043
- Sigstore integration time:
-
Permalink:
aidan-chisholm/fixcore@18f09c9e861bf60ce78cb015714007633a181a58 -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/aidan-chisholm
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@18f09c9e861bf60ce78cb015714007633a181a58 -
Trigger Event:
push
-
Statement type: