Introduction

AI FX is a Python-based foreign exchange market analysis platform built around a
loosely coupled broker/client architecture.
The system retrieves live market data from OANDA, distributes it over ZeroMQ,
and renders real-time candlestick charts in a standalone Qt desktop client.
Features
- Live candlestick chart visualization
- Standalone broker process
- ZeroMQ publish/subscribe messaging
- In-memory SQLite caching layer
- PySide6 / Qt desktop client
- Real-time instrument feed subscription
- Decoupled client/server architecture
Architecture

Broker Process
The broker is responsible for:
- Retrieving market data from OANDA
- Managing instrument and candle feeds
- Caching recent data in an in-memory SQLite database
- Publishing candle updates over ZeroMQ
Core Components
OandaMgr
BrokerDb
ServerMQ
Qt Client
The Qt desktop client is responsible for:
- Retrieving instruments from the broker
- Requesting live market feeds
- Consuming ZeroMQ candle streams
- Rendering live candlestick charts
Core Components
ClientQt
ClientMQ
Plotly candlestick visualization
Technology Stack
- Python 3
- PySide6 / Qt for Python
- ZeroMQ
- SQLite3
- Plotly
- OANDA REST API
Dev Ops
Demo