Commit Graph

19 Commits

Author SHA1 Message Date
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
Youssef Aitousarrah 97b2755e97 chore: rename research-strategy workflow to Daily 2026-04-14 13:47:21 -07:00
Youssef Aitousarrah 07345d9c4f feat(iterate): enforce file writes + auto-register hypotheses; research daily
- iterate: CRITICAL note that all writes must use file tools, not narration
- iterate: new Step 5.5 — auto-registers one forward-test hypothesis per run
  when a code change needs live-data validation
- research-strategy: cron changed from Monday-only to daily at 07:00 UTC

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 13:08:52 -07:00
Youssef Aitousarrah a9389043ac fix: target Aitous/TradingAgents repo for all automated PRs
gh pr create/list/edit were defaulting to TauricResearch (upstream).
Added --repo Aitous/TradingAgents to all gh calls in iterate,
research-strategy workflows and slash commands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 18:53:04 -07:00
Youssef Aitousarrah bcb325c150 feat(hypotheses): switch LLM analysis from Anthropic to Gemini
Uses google-genai SDK with gemini-2.5-flash-lite — same model already
used by the discovery pipeline, so no new secret needed (GOOGLE_API_KEY).
Removed ANTHROPIC_API_KEY from hypothesis-runner.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 18:04:38 -07:00
Youssef Aitousarrah 1b782b1cd6 feat(hypotheses): add daily hypothesis runner workflow 2026-04-10 09:49:10 -07:00
Youssef Aitousarrah e7e3b365d8 fix(workflows): create labels before applying them to PRs 2026-04-08 11:42:24 -07:00
Youssef Aitousarrah aaff21a770 fix(research-workflow): simplify existing-PR push path, remove no-op rebase 2026-04-08 11:20:14 -07:00
Youssef Aitousarrah fa3df1a4eb feat(iteration-system): add weekly research-strategy GitHub Actions workflow 2026-04-08 11:14:03 -07:00
Youssef Aitousarrah c79e4c2bcb fix(iterate-workflow): safer push logic with force-with-lease and rebase 2026-04-08 10:49:45 -07:00
Youssef Aitousarrah 527a56d922 feat(iteration-system): add daily iterate GitHub Actions workflow 2026-04-08 10:47:17 -07:00
Youssef Aitousarrah 32d89c3bfc fix(ci): restore daily discovery workflow
- Add permissions: contents: write so git push works (was failing with 403)
- Add continue-on-error: true on discovery step so partial output still commits
- Change all commit/tracking/position steps to if: always() so they run regardless of discovery outcome
- Use commit-then-pull-rebase-then-push pattern to handle branch divergence
- Fix minervini scanner missing from scanners/__init__.py (enabled in config but never loaded)
- Fix .gitignore: results/* + !results/discovery/ so CI run logs can be committed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 13:46:21 -07:00
Aitous 080f626a22 Update cron schedule to run one hour earlier 2026-02-16 13:27:01 -08:00
Aitous 7f326b1df8 Update cron schedule to run one hour earlier 2026-02-16 13:25:57 -08:00
Aitous 763c44691e
Merge pull request #4 from Aitous/feature/discovery-enhancements
feat: add performance tracking step to daily discovery workflow
2026-02-16 13:24:57 -08:00
Youssef Aitousarrah 683d42a9e2 feat: add performance tracking step to daily discovery workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 13:24:15 -08:00
Aitous f535b78b2e Update cron expression in daily-discovery.yml 2026-02-15 14:37:51 -08:00
Aitous bb1c32f3ea Update cron expression to run daily including weekends 2026-02-15 14:36:41 -08:00
Youssef Aitousarrah f4aceef857 feat: add daily discovery workflow, recommendation history, and scanner improvements
- Add GitHub Actions workflow for daily discovery (8:30 AM ET, weekdays)
- Add headless run_daily_discovery.py script for scheduling
- Expand options_flow scanner to use tickers.txt with parallel execution
- Add recommendation history section to Performance page with filters and charts
- Fix strategy name normalization (momentum/Momentum/Momentum-Hype → momentum)
- Fix strategy metrics to count all recs, not just evaluated ones
- Add error handling to Streamlit page rendering

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 22:07:02 -08:00