Skip to main content

Pure Python FIX protocol engine

Project description

FIXcore

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, and reset handling
  • 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-compliant Rejects
  • Async transport: SocketAcceptor + SocketInitiator with auto-reconnect
  • Durable FileStore (fsync + atomic sequence-number writes) and MemoryStore
  • MessageCracker dispatch mixin
  • Lightweight browser GUI via aiohttp (tools/fix_gui.py) — 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=specs/FIX42.xml
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.

Development

pip install -e ".[dev,gui]"
pytest
python tools/fix_gui.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fixcore_engine-0.5.0.tar.gz (74.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fixcore_engine-0.5.0-py3-none-any.whl (61.2 kB view details)

Uploaded Python 3

File details

Details for the file fixcore_engine-0.5.0.tar.gz.

File metadata

  • Download URL: fixcore_engine-0.5.0.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fixcore_engine-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2166a1bea1bc46bab145eb8e0d08146f2d2bb88ec96d7c953c5b6ec24d8c5b05
MD5 ff12d6ad55e0ddaa284a9001249b4bfb
BLAKE2b-256 1e5a724a172b55a2ab26505ecdaef2259847514a75bb3bf1c9346ad45467b023

See more details on using hashes here.

File details

Details for the file fixcore_engine-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: fixcore_engine-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 61.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fixcore_engine-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b75681119e6d2a12a1f1096d4c929df0f5672cc2fb54893c720035c2ae172d8
MD5 d6cb8cca612adb5f2c3f7a9c2c40afaa
BLAKE2b-256 28652b143d26c34054fab50cb7e4dbaab7db92bb8de3133eb7c3cfb1fe996fac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page