Inspiration

Most trading hackathons reward polished presentations. The AlgoConnect Quantathon rewards systems that actually survive real-world conditions: order rejections, disconnects, restarts, and two brokers that behave differently. We built FIXForge to treat execution reliability as the primary edge.

What it does

FIXForge is a production-style execution engine that:

  • Runs two medium-frequency strategies on 1-minute data
    • Intraday equities: VWAP mean-reversion that is forced flat before the close
    • Multi-day futures: Dual moving-average trend following that can hold overnight
  • Connects to a market data feed and converts signals into FIX orders
  • Routes orders to two separate simulated brokers via independent FIX sessions
  • Tracks every order and position while handling rejections, disconnects, and restarts
  • Automatically flattens equity positions at the end of the day to satisfy broker rules

How we built it

The system is written in pure Python with no external FIX library required.

  • FIX layer: Custom FIX 4.4 message builder and TCP client that manages logon, heartbeats, NewOrderSingle, and cancels. Each broker has its own session and sequence numbers.
  • Strategy layer: Fully modular. The equity and futures strategies are independent and can be swapped or retuned in minutes.
  • State management: Orders are tracked by ClOrdID. Positions are reconciled and hard limits are enforced.
  • Recovery: Automatic reconnect + logon on startup, plus a clean shutdown path that flattens residual equity risk.
  • Configuration: All hosts, ports, CompIDs, and symbols live in a single Config class so they can be updated quickly after the briefing.

Challenges we ran into

  • Designing a FIX stack that stays correct under partial fills, rejects, and sequence gaps without a full library.
  • Ensuring the equity strategy is always flat by the close even if the market data feed drops or an order is rejected.
  • Keeping the two brokers fully isolated so a problem on one side never affects the other.
  • Building something robust enough to adapt in a few hours once the real connection details and any new constraints are revealed.

Accomplishments that we're proud of

  • A working dual-broker FIX execution system that prioritizes reliability over complexity.
  • Clean separation between strategy logic and execution so either can be changed rapidly.
  • Explicit compliance with the different holding-period rules of the equity and futures brokers.
  • A codebase structured so the 5-hour adaptation window is mostly configuration and minor parser changes rather than rewrites.

What we learned

Real trading systems are judged on what happens when things go wrong. Position tracking, restart recovery, and strict rule compliance matter more than the sophistication of the signal. We also confirmed that medium-frequency strategies on 1-minute data need deliberately different horizons for equities versus futures.

What's next for FIXForge Quantathon

After the finale we plan to add full Execution Report parsing with reject handling, persistent state across restarts, and more sophisticated risk controls. The same modular design can also support additional strategies or real broker adapters once the simulated environment is no longer required.

Built With

  • algorithmic
  • data
  • engine
  • execution
  • finance
  • fix
  • frequency
  • management
  • market
  • medium
  • order
  • position
  • protocol
  • python
  • quantitative
  • tracking
  • trading
Share this project:

Updates

Submission history