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, 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
  • FIX versions 4.0–4.4 plus FIX 5.0 over FIXT.1.1 (FIX.5.0 / SP1 / SP2), with DefaultApplVerID negotiation and a combined transport + application dictionary — all QuickFIX dictionaries bundled
  • 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
  • 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) and MemoryStore
  • MessageCracker dispatch 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.

FIX 5.0 (FIXT.1.1)

FIX 5.0 splits the session transport from the application layer. Use BeginString=FIXT.1.1 and select the application version — fixcore combines the transport and application dictionaries automatically:

[SESSION]
BeginString=FIXT.1.1
UseDataDictionary=Y
AppDataDictionary=FIX50SP2.xml   ; FIX50.xml / FIX50SP1.xml / FIX50SP2.xml
DefaultApplVerID=FIX.5.0SP2      ; negotiated on Logon (tag 1137); also accepts 7/8/9

TransportDataDictionary defaults to FIXT11.xml. If AppDataDictionary is omitted it is inferred from DefaultApplVerID. See docs/fixt-5.0.md.

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


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.11.1.tar.gz (471.2 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.11.1-py3-none-any.whl (451.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fixcore_engine-0.11.1.tar.gz
  • Upload date:
  • Size: 471.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fixcore_engine-0.11.1.tar.gz
Algorithm Hash digest
SHA256 a60e0c824ed96d49e5b8ebb0e2bb28959f7438285b206c74e555bed4c2050fdb
MD5 65c043fc74c42bd0a8165404a4825ee4
BLAKE2b-256 66f1bf9b6f7bd078b03216d7c3cc8dbc9ef71962135f58df23138ceefb0066a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixcore_engine-0.11.1.tar.gz:

Publisher: publish.yml on aidan-chisholm/fixcore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: fixcore_engine-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 451.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fixcore_engine-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d01dfede83824346a814a791182891b1e837a2708504c42350bfb51175f43af6
MD5 64930dd1ff56cb36c9af9b08c089f6c6
BLAKE2b-256 f09e7e61e3b419e3181b20a8bf59aa6091b1b62dee74d1d375999f1ab3cddfbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixcore_engine-0.11.1-py3-none-any.whl:

Publisher: publish.yml on aidan-chisholm/fixcore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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