How chaostrader913/apps works
This repository implements a Hong Kong stock signal daily-report workflow. The main entry point fetches constituent-stock data, obtains a Hang Seng benchmark, scans technical signals, calculates relative-strength rankings and history, plots hit stocks, and writes a self-contained HTML report. Data acquisition supports Yahoo and Tencent sources, with incremental CSV caching. The README contains no architectural detail; relationships below rely on sampled source and SOURCE INDEX references, so unsampled scheduling behavior is not represented.
Main entry points: main.py Daily Pipeline · fetch_data.py Stock Data Fetch · data_cache.py Daily CSV Cache · report.py HTML Report Builder
Components 16
Workflow
- Daily Pipeline
quant-reporter/main.py - Stock & Signal Config
quant-reporter/config.py
Market Data
- Stock Data Fetch
quant-reporter/fetch_data.py - Yahoo Finance
- Tencent Finance
- Daily CSV Cache
quant-reporter/data_cache.py - Stock OHLCV Data
- Hang Seng Benchmark
Signal Analysis
- Technical Signal Scan
quant-reporter/scan_signals.py - Relative Strength Ranking
quant-reporter/relative_strength.py
Report Output
- Signal Stock Charts
quant-reporter/plot_charts.py - Chart Images
- HTML Report Builder
quant-reporter/report.py - Daily HTML Report
Other components
- Report Run
- Report Recipient
Connections 25
- Report Run → Daily Pipeline: starts
- Daily Pipeline → Stock Data Fetch: fetches stocks
quant-reporter/main.py - Daily Pipeline → Daily CSV Cache: gets benchmark
quant-reporter/main.py - Daily Pipeline → Technical Signal Scan: scans signals
quant-reporter/main.py - Daily Pipeline → Relative Strength Ranking: computes rankings
quant-reporter/main.py - Daily Pipeline → Signal Stock Charts: plots hits
quant-reporter/main.py - Daily Pipeline → HTML Report Builder: saves report
quant-reporter/main.py - Stock Data Fetch → Stock & Signal Config: reads pool
quant-reporter/fetch_data.py - Stock Data Fetch → Yahoo Finance: downloads data
quant-reporter/fetch_data.py - Stock Data Fetch → Tencent Finance: falls back
quant-reporter/fetch_data.py - Stock Data Fetch → Stock OHLCV Data: returns OHLCV
quant-reporter/fetch_data.py - Daily CSV Cache → Yahoo Finance: fetches increments
quant-reporter/data_cache.py - Daily CSV Cache → Tencent Finance: fetches index
quant-reporter/data_cache.py - Daily CSV Cache → Stock Data Fetch: falls back
quant-reporter/data_cache.py - Daily CSV Cache → Stock OHLCV Data: reads and writes
quant-reporter/data_cache.py - Daily Pipeline → Stock OHLCV Data: passes data
quant-reporter/main.py - Daily Pipeline → Hang Seng Benchmark: passes benchmark
quant-reporter/main.py - Relative Strength Ranking → Daily CSV Cache: loads benchmark
quant-reporter/relative_strength.py - Technical Signal Scan → Stock & Signal Config: reads thresholds
quant-reporter/scan_signals.py - Signal Stock Charts → Technical Signal Scan: uses indicators
quant-reporter/plot_charts.py - Signal Stock Charts → Chart Images: writes images
quant-reporter/plot_charts.py - HTML Report Builder → Stock & Signal Config: reads report settings
quant-reporter/report.py - HTML Report Builder → Chart Images: embeds images
quant-reporter/report.py - HTML Report Builder → Daily HTML Report: writes HTML
quant-reporter/report.py - Report Recipient → Daily HTML Report: views