Overview of FinRL-X Architecture
masterFinRL-X is a modular quantitative trading infrastructure designed around a weight-centric architecture. The core principle is that the target portfolio weight vector serves as the sole interface contract between strategy logic and execution. This allows for modular swapping of components (e.g., replacing an Equal Weight allocator with a DRL allocator) without changing the downstream pipeline.
The architecture is organized into four layers:
- Data: Handles market data via FMP, Yahoo Finance, WRDS, and LLM sentiment preprocessing, using SQLite for caching.
- Strategy: Generates weight-centric signals through stock selection, portfolio allocation, timing adjustment, and risk overlay.
- Backtest: An offline evaluation engine powered by
btthat supports multi-benchmark comparison and transaction costs. - Execution: Manages live or paper trading via Alpaca multi-account integration with pre-trade risk checks.