How tharun-maheswararao/quant-signal-pipeline works
This is a research and validation pipeline, not a trading system. Researchers collect live or historical Coinbase market data, derive signals/features and forward labels, train and tune models, then assess them through cost-aware backtests, rolling walk-forward windows, and a final holdout. The map also preserves documented signal diagnostics and statistical checks. The main runtime relationships are supported by sampled source; broader validation capabilities and the orchestration sequence are documented in the README and runner. The graph does not imply that the two data sources feed the same storage path.
Main entry points: run_walk_forward_validation.py Validation Workflow · signals.py Live Signal Handling · labeling.py Forward Labels · backtest.py Backtest Assembly
Components 21
Market Data
- Live Ingestion
src/quant_pipeline/ingestion.py - Historical Fetch
src/quant_pipeline/historical.py - Trade Context JSONL
src/quant_pipeline/ingestion.py - Candle Adaptation
src/quant_pipeline/historical.py
Signal Research
- Live Signal Handling
src/quant_pipeline/signals.py - Order Book Signals
src/quant_pipeline/signals.py - Forward Labels
src/quant_pipeline/labeling.py - Feature Assembly
src/quant_pipeline/models.py - Candle Features
src/quant_pipeline/historical.py - Dataset Assembly
src/quant_pipeline/models.py
Model Evaluation
- Model Training & Tuning
src/quant_pipeline/models.py - Final Holdout Split
src/quant_pipeline/models.py - Backtest Assembly
src/quant_pipeline/backtest.py - Walk-Forward Backtest
src/quant_pipeline/backtest.py - Cost-Aware P&L
src/quant_pipeline/backtest.py - Risk Metrics
src/quant_pipeline/backtest.py - Validation Workflow
scripts/run_walk_forward_validation.py
Statistical Diagnostics
- Stationarity & Autocorrelation
src/quant_pipeline/validation.py
Other components
- Researcher
- Coinbase WebSocket
- Coinbase Candles API
Connections 29
- Researcher → Live Ingestion: starts stream
README.md - Coinbase WebSocket → Live Ingestion: streams messages
src/quant_pipeline/ingestion.py - Live Ingestion → Live Signal Handling: dispatches messages
src/quant_pipeline/ingestion.py - Live Signal Handling → Order Book Signals: reads order state
src/quant_pipeline/signals.py - Live Signal Handling → Trade Context JSONL: writes context
src/quant_pipeline/signals.py - Researcher → Historical Fetch: requests history
README.md - Historical Fetch → Coinbase Candles API: fetches candles
src/quant_pipeline/historical.py - Historical Fetch → Candle Adaptation: adapts candles
README.md - Candle Adaptation → Forward Labels: provides trades
scripts/run_walk_forward_validation.py - Forward Labels → Dataset Assembly: labels examples
scripts/run_walk_forward_validation.py - Forward Labels → Backtest Assembly: provides labels
src/quant_pipeline/backtest.py - Feature Assembly → Live Signal Handling: computes momentum
src/quant_pipeline/models.py - Candle Features → Live Signal Handling: computes momentum
src/quant_pipeline/historical.py - Dataset Assembly → Feature Assembly: assembles features
src/quant_pipeline/models.py - Dataset Assembly → Model Training & Tuning: supplies examples
scripts/run_walk_forward_validation.py - Candle Features → Backtest Assembly: supplies features
src/quant_pipeline/historical.py - Researcher → Validation Workflow: runs validation
README.md - Validation Workflow → Candle Adaptation: adapts history
scripts/run_walk_forward_validation.py - Validation Workflow → Forward Labels: creates labels
scripts/run_walk_forward_validation.py - Validation Workflow → Backtest Assembly: assembles data
scripts/run_walk_forward_validation.py - Backtest Assembly → Feature Assembly: builds features
src/quant_pipeline/backtest.py - Validation Workflow → Final Holdout Split: reserves holdout
scripts/run_walk_forward_validation.py - Validation Workflow → Walk-Forward Backtest: runs windows
scripts/run_walk_forward_validation.py - Walk-Forward Backtest → Model Training & Tuning: trains per window
src/quant_pipeline/backtest.py - Walk-Forward Backtest → Cost-Aware P&L: simulates trades
src/quant_pipeline/backtest.py - Validation Workflow → Model Training & Tuning: trains models
scripts/run_walk_forward_validation.py - Validation Workflow → Cost-Aware P&L: tests holdout
scripts/run_walk_forward_validation.py - Validation Workflow → Risk Metrics: computes metrics
scripts/run_walk_forward_validation.py - Researcher → Stationarity & Autocorrelation: checks series
README.md