FixCLI is a command-line testing tool and session emulator for the Financial Information eXchange (FIX) protocol (versions 4.2 and 4.4). It provides developers and quantitative infrastructure engineers with an interactive terminal to test broker connectivity, dispatch algorithmic orders, inspect raw message fields, and automate protocol integration testing.
flowchart LR
User["Developer / Test Engineer"] --> CLI["FixCLI Terminal Interface"]
CLI --> Session["FixSession Controller\n(SeqNum, Heartbeat Timer, Logon)"]
Session --> Codec["FixMessage Serializer & Parser\n(Tag Dictionary & Checksum Modulo-256)"]
Codec --> Socket["AsyncIO TCP Socket Connection"]
Socket --> Gateway["Exchange / Broker FIX Gateway"]
- Complete FIX Tag Mapping: Automatically decodes standard FIX tags (35=MsgType, 49=SenderCompID, 56=TargetCompID, 11=ClOrdID, 38=OrderQty, 44=Price, 54=Side) into human-readable labels.
- Automated Checksum Calculation: Recomputes and validates Tag 10 modulo-256 checksums on all outbound and inbound message frames.
- Session Management: Manages bidirectional sequence numbers, Logon handshakes, and periodic Heartbeat timers.
- Built-In Broker Simulator: Includes an embedded mock broker daemon capable of accepting Logons and auto-executing NewOrderSingle orders with real-time ExecutionReports (35=8).
- Colorized Terminal Diagnostics: Visual highlighting for message headers, order identifiers, and execution prices.
python -m fixcli.cli server --port 9800python -m fixcli.cli order --host 127.0.0.1 --port 9800 --symbol AAPL --side BUY --qty 100 --price 150.50python -m fixcli.cli parse "8=FIX.4.2|9=65|35=D|49=CLIENT|56=BROKER|34=1|11=ORD1|55=MSFT|54=1|38=50|44=420.00|10=182|"pytest tests/ -vMIT License