Skip to content
ReFIXReFIX

A FIX engine for Rust and Python

The FIX protocol in pure Rust, with first-party bindings for Python.
Terminal window
pip install refix refix-fix44

Requires Python 3.12 or later.

refix reads messages, and refix-fix44 adds the typed FIX 4.4 messages. For FIX 4.2, install refix-fix42 instead. For other FIX versions or a custom dialect, generate your own package. See Your own dictionary.

This log holds a NewOrderSingle and a Heartbeat, each after a logger’s prefix.

fix.log
2026-10-08 09:30:00.000 OUT 8=FIX.4.4|9=118|35=D|49=SENDER|56=TARGET|34=1|52=20261008-09:30:00|11=ORDER-1|55=ACME|54=1|60=20261008-09:30:00|40=2|44=101.25|38=100|10=194|
2026-10-08 09:30:00.250 IN 8=FIX.4.4|9=5|35=0|10=163|

Print each order’s fields as typed values.

import refix
from refix_fix44 import CODEC, NewOrderSingle
for record in refix.decode_log("fix.log", CODEC):
order = record.message
if isinstance(order, NewOrderSingle):
print(order.cl_ord_id, order.side.name, order.order_qty, order.price)
ORDER-1 BUY 100 101.25

The quick start explains each step.

Read logs

Read FIX logs as they are, with any separator and a logger’s prefix before each message.

Read the guide

Typed messages

Read fields as typed values through generated FIX 4.2 and 4.4 messages.

Read the guide

Your own dictionary

Generate typed messages from your own dictionary.

Read the guide