TradingAgents/scripts
Youssef Aitousarrah e15e2df7a5 feat(cache): unified ticker universe + nightly OHLCV prefetch
- tradingagents/dataflows/universe.py: single source of truth for ticker
  universe; all scanners now call load_universe(config) instead of
  duplicating the 3-level fallback chain with hardcoded "data/tickers.txt"

- scripts/prefetch_ohlcv.py: nightly script using existing ohlcv_cache.py
  incremental logic; first run downloads 1y history, subsequent runs append
  only new trading days

- .github/workflows/prefetch.yml: runs at 01:00 UTC daily, before all other
  workflows; commits updated parquet to repo

- Updated 6 scanners: minervini, high_52w_breakout, ml_signal, options_flow,
  sector_rotation, technical_breakout — removed duplicate DEFAULT_TICKER_FILE
  constants and _load_tickers_from_file() functions

- minervini, high_52w_breakout, technical_breakout: replace yf.download()
  with download_ohlcv_cached() — reads from prefetched cache instead of
  hitting yfinance at discovery time

- default_config.py: added discovery.ohlcv_cache_dir config key

- data/ohlcv_cache/: initial 1y backfill (588 tickers, 5.4MB parquet)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 16:18:52 -07:00
..
__init__.py feat(hypotheses): add comparison + conclusion script 2026-04-10 09:29:08 -07:00
analyze_insider_transactions.py chore: linter formatting + ML scanner logging, prompt control, ranker reasoning 2026-02-09 23:04:38 -08:00
build_historical_memories.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00
build_ml_dataset.py chore: linter formatting + ML scanner logging, prompt control, ranker reasoning 2026-02-09 23:04:38 -08:00
build_strategy_specific_memories.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00
compare_hypothesis.py fix(hypotheses): id validation, worktree prune, safe loop, 14d enrichment cutoff 2026-04-10 09:56:22 -07:00
install_git_hooks.sh feat: discovery system code quality improvements and concurrent execution 2026-02-05 23:27:01 -08:00
prefetch_ohlcv.py feat(cache): unified ticker universe + nightly OHLCV prefetch 2026-04-14 16:18:52 -07:00
run_daily_discovery.py Update 2026-02-16 14:17:41 -08:00
run_hypothesis_runner.py fix(hypotheses): prune concluded entries from active.json after each run 2026-04-14 13:47:21 -07:00
scan_reddit_dd.py feat: discovery pipeline enhancements with ML signal scanner 2026-02-09 22:53:42 -08:00
track_recommendation_performance.py Add recommendations folder so that the UI can display it 4 2026-02-10 22:28:52 -08:00
train_ml_model.py chore: linter formatting + ML scanner logging, prompt control, ranker reasoning 2026-02-09 23:04:38 -08:00
update_delisted_tickers.sh feat: discovery pipeline enhancements with ML signal scanner 2026-02-09 22:53:42 -08:00
update_positions.py feat(scanners): add minervini scanner to registry 2026-04-06 13:51:42 -07:00
update_ticker_database.py feat: discovery pipeline enhancements with ML signal scanner 2026-02-09 22:53:42 -08:00