AetherTrade is an ultra-low-latency hybrid HFT platform targeting Xilinx UltraScale+ FPGAs. It implements line-rate NASDAQ ITCH 5.0 parsing, URAM-based order books, and pre-trade risk checks with a high-performance C++ control path.
The system is architected following the AMD UltraFast Design Methodology, ensuring deterministic performance and high-frequency operation.
- 10GbE MAC/PHY: Direct wire-level market data ingestion.
- NASDAQ ITCH 5.0 Parser: Line-rate binary protocol parsing in Verilog.
- URAM Order Book: Single-cycle access to L2 market depth using UltraRAM.
- HLS Risk Engine: Pre-trade risk validation (Price-Band, Wash-Trade) implemented in C++ (HLS) for < 50ns latency.
- PCIe DMA: Zero-copy data transfer between hardware and host using XDMA/QDMA.
- Strategy Engine: High-performance C++ engine with CPU core isolation and thread pinning.
- Telemetry Bridge: ZeroMQ-based broadcasting of live PnL and alpha signals.
- Dashboard: Premium glassmorphism UI for real-time operational monitoring.
.
├── hdl/ # Verilog/SystemVerilog RTL (Parser, Order Book)
├── hls/ # C++ High-Level Synthesis (Risk Engine)
├── src/ # Host C++ Strategy Engine and DMA logic
├── ui/ # Monitoring Dashboard (HTML/CSS/JS)
├── tests/ # Hardware/Software test suites
├── scripts/ # Python verification tools (PCAP Replay)
├── specs/ # SDD Design Artifacts (Spec Kit)
├── .specify/ # Spec Kit internal infrastructure
└── .gemini/ # Agent-specific skills and commands
- Hardware: Xilinx UltraScale+ FPGA.
- Tooling: Vivado/Vitis 2023.2+, GCC/Clang, Python 3.10+.
- Package Manager: uv (for verification scripts).
- Initialize Environment:
uv sync
- Build Hardware: Open Vivado and source the TCL scripts (TBD) to generate the bitstream.
- Build Software:
clang++ -O3 -I src src/strategy_engine.cpp -o strategy_engine -lzmq
This project follows Spec-Driven Development (SDD). The Python files in scripts/ are used for hardware verification only and are not synthesized into the FPGA logic.
To verify the hardware parser logic without a physical feed:
uv run python scripts/verify_pcap.py data/sample_itch.pcapThis repository is powered by GitHub Spec Kit for the Gemini CLI. Use the following slash commands to drive development:
/speckit.specify- Create functional requirements./speckit.plan- Generate technical implementation plans./speckit.tasks- Break plans into actionable task lists./speckit.implement- Execute implementation following TDD.
This project is licensed under the MIT License - see the LICENSE file for details.