Skip to content
Rithikasri-codePublic

About

Interactive Financial Information eXchange (FIX) protocol terminal and testing client for financial brokerages and trading gateways.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

FixCLI: Interactive FIX Protocol Terminal and Gateway Testing Client

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.

Architecture

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"]
Loading

Features

  • 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.

Command Line Usage

1. Launch In-Memory Broker Simulator

python -m fixcli.cli server --port 9800

2. Connect and Send an Interactive Order

python -m fixcli.cli order --host 127.0.0.1 --port 9800 --symbol AAPL --side BUY --qty 100 --price 150.50

3. Parse and Decode a Raw FIX Message String

python -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|"

Running Unit Tests

pytest tests/ -v

License

MIT License

About

Interactive Financial Information eXchange (FIX) protocol terminal and testing client for financial brokerages and trading gateways.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages