TradingAgents/tradingagents/dataflows/discovery
Youssef Aitousarrah 704af1a855 fix(discovery): commit risk_metrics.py and reduce Minervini max_tickers to 50
Two bugs causing zero recommendations:

1. risk_metrics.py was untracked — importing it raised ModuleNotFoundError which
   was caught by the outer try/except in filter.py, silently dropping all 32
   candidates that reached the fundamental risk check stage.

2. Minervini scanner at max_tickers=200 took >5 min to download 200 tickers x 1y
   of OHLCV data. ThreadPoolExecutor.cancel() cannot kill a running thread, so the
   download kept running as a zombie thread for 20 more minutes after the pipeline
   completed, holding the Python process alive until the 30-min workflow timeout
   killed the entire job.

   Reducing to 50 tickers brings the download to ~75s, well under the 300s global
   scanner timeout.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 16:24:29 -07:00
..
performance feat: discovery pipeline enhancements with ML signal scanner 2026-02-09 22:53:42 -08:00
scanners fix(discovery): commit risk_metrics.py and reduce Minervini max_tickers to 50 2026-04-07 16:24:29 -07:00
__init__.py feat: discovery system code quality improvements and concurrent execution 2026-02-05 23:27:01 -08:00
analytics.py Update 2026-02-20 08:38:15 -08:00
candidate.py feat: discovery system code quality improvements and concurrent execution 2026-02-05 23:27:01 -08:00
common_utils.py fix(discovery): fix three scanner hang/validation bugs found in ranker_debug.log 2026-02-20 22:35:42 -08:00
discovery_config.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00
filter.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00
ranker.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00
risk_metrics.py fix(discovery): commit risk_metrics.py and reduce Minervini max_tickers to 50 2026-04-07 16:24:29 -07:00
scanner_registry.py Update 2026-02-20 08:38:15 -08:00
ticker_matcher.py feat: discovery pipeline enhancements with ML signal scanner 2026-02-09 22:53:42 -08:00
utils.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00