How kswkm/q.investment-email works
Investment-email is a reference-only, multi-market stock-analysis pipeline: Toss market data feeds candidate selection and quantitative scoring, with optional disclosure/news-based reliability analysis, then an HTML report is emailed. The graph follows the README’s documented workflow and the shown imports/calls; unsampled implementation details are not inferred beyond documented capabilities.
Main entry points: main.py Pipeline Orchestrator · reliability_analyzer.py Reliability Analyzer · data_collector.py Market Collector · toss_api.py Toss API Adapter
Components 21
Workflow
- Pipeline Orchestrator
main.py - Runtime Configuration
config.py
Market Data
- Market Collector
data/data_collector.py - Symbol Utilities
shared/symbol_utils.py - Toss API Adapter
api/toss_api.py
Quant Analysis
- Quant Analyzer
analysis/quant_analyzer.py
Reliability Analysis
- Reliability Analyzer
ai/reliability_analyzer.py - DART Client
ai/data/dart_client.py - SEC Client
ai/data/sec_client.py - News Client
ai/data/news_client.py - Evidence Normalizer
ai/data/data_normalizer.py - Ollama Client
ai/ollama_client.py
Report Delivery
- HTML Report Generator
communication/report_generator.py - Email Manager
communication/email_manager.py
Other components
- Investor
- Toss Open API
- DART Open API
- SEC EDGAR
- Google News RSS
- Ollama Server
- Gmail SMTP
Connections 21
- Investor → Pipeline Orchestrator: starts analysis
README.md - Pipeline Orchestrator → Runtime Configuration: loads settings
README.md - Pipeline Orchestrator → Market Collector: collects candidates
README.md - Market Collector → Symbol Utilities: validates symbols
data/data_collector.py - Market Collector → Toss API Adapter: requests prices and charts
data/data_collector.py - Toss API Adapter → Toss Open API: fetches market data
api/toss_api.py - Pipeline Orchestrator → Quant Analyzer: scores candidates
README.md - Pipeline Orchestrator → Reliability Analyzer: requests reliability
README.md - Reliability Analyzer → DART Client: queries disclosures
ai/reliability_analyzer.py - Reliability Analyzer → SEC Client: queries filings
ai/reliability_analyzer.py - Reliability Analyzer → News Client: collects news
ai/reliability_analyzer.py - Reliability Analyzer → Evidence Normalizer: normalizes evidence
ai/reliability_analyzer.py - Reliability Analyzer → Ollama Client: evaluates evidence
ai/reliability_analyzer.py - Reliability Analyzer → Symbol Utilities: validates symbols
ai/reliability_analyzer.py - DART Client → DART Open API: requests disclosures
ai/data/dart_client.py - SEC Client → SEC EDGAR: requests filings
ai/data/sec_client.py - News Client → Google News RSS: searches RSS
ai/data/news_client.py - Ollama Client → Ollama Server: generates JSON
ai/ollama_client.py - Pipeline Orchestrator → HTML Report Generator: builds report
README.md - Pipeline Orchestrator → Email Manager: sends report
README.md - Email Manager → Gmail SMTP: delivers email
communication/email_manager.py