Commit Graph

1238 Commits

Author SHA1 Message Date
dependabot[bot] 670585f640 chore(deps): Bump github/codeql-action from 3 to 4 (#12)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-18 09:09:31 +02:00
dependabot[bot] bdb1d03357 chore(deps): Bump actions/deploy-pages from 4 to 5 (#11)
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 4 to 5.
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/deploy-pages
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-18 09:09:29 +02:00
dependabot[bot] 8433795a4a chore(deps): Bump actions/cache from 4 to 5 (#10)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-18 09:09:26 +02:00
dependabot[bot] 210c4e8ad3 chore(deps): Bump codecov/codecov-action from 4 to 6 (#9)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-18 09:09:23 +02:00
dependabot[bot] 9e68c761b8 chore(deps): Bump actions/upload-artifact from 4 to 7 (#8)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-18 09:09:20 +02:00
github-actions[bot] ce2f0b951f chore(master): release 2.1.0 (#18)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.1.0
2026-04-18 09:09:12 +02:00
TPTBusiness 5ee1a4ac5a docs: improve README badges, fix llama-server flags, clean up structure
- Fix CI badge branch main→master
- Add Security scan and Conventional Commits badges
- Fix llama-server flags: --parallel 2, --reasoning off (not --reasoning-budget 0)
- Remove duplicate Configuration section
- Add predix best command to CLI table
- Update Contributing section to use Conventional Commits format

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 08:50:59 +02:00
TPTBusiness cfba49d7c4 ci(codacy): fix ESLint/PMD/pylint SARIF crash
Add .codacy.yml to disable ESLint (no .eslintrc in web/), PMD (no Java
code), and Prospector; restrict analysis paths to rdagent/ core.
Limit codacy workflow to bandit-only to avoid IndexOutOfBoundsException
at Sarif.scala:185 caused by 14k+ pylint results overwhelming the
SARIF formatter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 08:40:46 +02:00
TPTBusiness cb6cbd2bfc ci: add dependabot, conventional commits check, and scheduled weekly tests
- dependabot.yml: weekly auto-PRs for pip and github-actions deps
  (major version bumps ignored, reviewed manually)
- conventional-commits.yml: blocks PRs with non-conforming titles;
  warns on individual commits (required for release-please changelogs)
- scheduled-tests.yml: weekly pytest run on py3.10+3.11, plus
  dependency vulnerability audit via safety

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 08:35:19 +02:00
TPTBusiness 7a0f81f275 fix(optuna): fix inverted parameter range in Stage 2/3 when signal_bias is negative
`_sample_fine_params` and `_sample_very_fine_params` used `max(0.0, center - half_width)`
for all float parameters. When signal_bias=-0.95 (a valid Stage-1 result), this
produced low=0.0, high=-0.75 — an inverted range that causes Optuna to raise
ValueError on every trial, silently caught and returned as -inf.

Fix:
- Extract `_suggest_bounded()` helper with per-parameter floor values
- signal_bias floor is -1.0 (not 0.0 — it is a signed parameter)
- Guard against high <= low for both float and int suggestions
- Elevate trial failure logs from debug to warning so future regressions are visible

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 08:05:49 +02:00
TPTBusiness 0651faed92 feat: unified backtest engine, LLM error handling, strategy refactor
- Add vbt_backtest.py as single source of truth for all metric formulas
  (Sharpe, drawdown, IC, transaction costs) — backtest_engine.py and
  strategy_orchestrator.py now delegate to it
- Add LLMUnavailableError to exception.py; rd_loop.py catches it at the
  proposal stage and raises LoopResumeError to avoid corrupting trace
  history with None hypotheses
- Guard record() against None exp/hypothesis so loop resets leave
  trace.hist in a consistent state
- Refactor strategy_orchestrator and optuna_optimizer to use unified
  backtest path; remove duplicate metric calculation code
- Add predix_rebacktest_unified.py script for offline re-evaluation
- Update tests and README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:52:07 +02:00
TPTBusiness 2baa8d3e65 fix(ci): remove CodeQL workflow (conflicts with default setup), drop duplicate lint job
- codeql.yml removed: GitHub default setup already runs CodeQL; advanced
  config upload fails when default setup is enabled
- ci.yml lint job removed: duplicate of lint.yml, fails on pre-existing
  violations unrelated to this PR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:46:15 +02:00
TPTBusiness cfbe50e63e fix(ci): set JAVA_TOOL_OPTIONS UTF-8 in Codacy workflow
Fixes MalformedInputException when Codacy SARIF formatter reads Python
files containing non-ASCII characters.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:38:15 +02:00
TPTBusiness bc717ffe84 ci: add CodeQL workflow, switch release to release-please, simplify CI
- ci.yml: lint + bandit (PyCQA/bandit-action) + pytest test/backtesting/
- release.yml: switch from manual tag-based to release-please auto-changelog
- codeql.yml: new weekly + on-push CodeQL Python analysis

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:37:22 +02:00
Trading Prediction Technology fb8fba2668 Add Codacy security scan workflow
This workflow integrates Codacy security scans with GitHub Actions.
2026-04-17 22:07:29 +02:00
TPTBusiness 03346e7997 fix(deps): pin aiohttp>=3.13.4 to patch 4 CVEs
Explicitly require aiohttp>=3.13.4 to ensure the patched version is
installed regardless of what mlflow, langchain-community, or litellm
resolve as their transitive dependency.

Fixes Dependabot alerts #64, #67, #68, #73:
- CVE-2026-22815: unlimited trailer headers (memory exhaustion)
- CVE-2026-34515: UNC SSRF / NTLMv2 credential theft on Windows
- CVE-2026-34516: multipart header size bypass (DoS)
- CVE-2026-34525: duplicate Host header acceptance

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:02:07 +02:00
TPTBusiness ec2b8ec7af fix(security): replace relative_to() with realpath+startswith for CodeQL sanitization
Path injection (#22, #28, #29, #30):
- Switch from Path.relative_to() to os.path.realpath() + str.startswith()
  in all four path-validation sites across finetune and rl UI data_loader.py
  and finetune app.py. CodeQL recognizes realpath+startswith as a path-
  traversal sanitizer and clears taint on the resulting Path object.
- Also simplify finetune/app.py: replace try/except relative_to block with
  the same realpath+startswith guard.

Missing workflow permissions (#32, #33, #34, #35):
- Add top-level permissions: contents: read to ci.yml, docs.yml, lint.yml,
  and security.yml. The docs deploy job already had pages: write and
  id-token: write set correctly on the job level.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 21:59:03 +02:00
TPTBusiness 52bee1b35a fix(security): resolve CodeQL path-injection and clear-text-logging alerts
Path injection (#37, #39, #40):
- _safe_resolve() in app.py: return safe_root / candidate.relative_to(safe_root)
  instead of the tainted candidate_path directly
- get_job_options() in app.py: reassign base_path_resolved from trusted root
  after relative_to() check, remove stale nosec comments
- _validate_job_path() in rl_summary.py: return root-derived path and omit
  resolved_job from the error message to avoid information leakage

Clear-text logging (#38):
- eurusd_llm.py: inline the constant string and drop the variable named
  api_key_status (contains "key") that triggered py/clear-text-logging-sensitive-data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 21:51:35 +02:00
TPTBusiness f5af707b79 fix(security): resolve CodeQL path-injection alerts in UI data loaders
After the relative_to() boundary check, reassign the path variable using
resolved_root / resolved_path.relative_to(resolved_root) so all subsequent
file operations use a path derived from the trusted application root rather
than the original user-supplied value. This breaks CodeQL's taint chain
(py/path-injection) while preserving identical runtime behaviour.

Fixes alerts #41, #42, #43, #44.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 21:49:30 +02:00
TPTBusiness 3ab0d236cf feat(logging): write complete LLM prompts and responses to daily JSONL log
Add log_llm_call() to daily_log.py that appends every LLM interaction
(system prompt, user prompt, response, duration_ms) as a JSON object to
logs/YYYY-MM-DD/llm_calls.jsonl. Call it from both chat completion paths
in base.py so all LLM activity — factor generation, strategy generation,
feedback, proposals — is captured in a human-readable, grep/jq-friendly
format alongside the existing binary pickle logs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 21:46:28 +02:00
Trading Prediction Technology a422b6ff3f Merge pull request #7 from TPTBusiness/dependabot/npm_and_yarn/web/follow-redirects-1.16.0 2026-04-16 16:54:21 +02:00
TPTBusiness 46cffe4879 fix(ci): fix closed-source asset check false positives in security workflow
- Remove git_ignore_folder/RD-Agent_workspace symlink from tracking
  (local symlink pointing to results/rd_agent_workspace, not for VCS)
- Rewrite closed-source check to use precise patterns:
  - grep -F for exact prefix matching (no regex metacharacter issues)
  - results/: allow README.md and .gitkeep, block everything else
  - .env: match only .env and .env.* files, not paths containing "env"
    (previously matched kaggle_environment.yaml, env.py, etc.)
  - Add explicit check for committed data files (*.db, *.h5, *.parquet, *.log)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 07:47:24 +02:00
TPTBusiness c78ecd3b6a feat: add daily log rotation, llama health wait, factor auto-fixer, and README updates
- Add rdagent/log/daily_log.py: daily-rotating structured logs per command
  (fin_quant, strategies, evaluate, parallel) with loguru; all.log combined sink
- predix.py: route TeeWriter output to logs/YYYY-MM-DD/ instead of root dir;
  wrap quant() and evaluate() in daily_log.session() for start/stop/duration tracking
- rdagent/app/cli.py: fin_quant_cli waits for llama.cpp /health endpoint before
  starting pipeline (up to 300 s); daily_log integration for fin_quant,
  generate_strategies, eval_all, parallel commands
- scripts/predix_gen_strategies_real_bt.py: daily_log integration with
  per-strategy ACCEPTED/REJECTED entries and summary on completion
- rdagent/components/coder/factor_coder/auto_fixer.py: new module that patches
  common LLM-generated factor issues (min_periods, inf/NaN, groupby.transform,
  MultiIndex corrections)
- rdagent/components/coder/factor_coder/prompts.yaml: add critical rules for
  EURUSD 1-min intraday factors (min_periods, inf handling, groupby, date range)
- README.md: document --reasoning off and --n-gpu-layers 28 for llama-server;
  explain VRAM constraints when Ollama is running alongside llama.cpp
- .bandit.yml: suppress B615 (HuggingFace unsafe download) for RL benchmark files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 07:20:08 +02:00
dependabot[bot] cd0ffeda77 chore(deps): Bump follow-redirects from 1.15.11 to 1.16.0 in /web
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.11 to 1.16.0.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.11...v1.16.0)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-15 22:09:10 +00:00
TPTBusiness 144311f6ec fix(strategy): Re-evaluate Optuna-optimized strategies with full OHLCV backtest
- Add _patch_strategy_code() to inject Optuna's best parameters into
  LLM-generated strategy code (handles window, entry_thresh, exit_thresh,
  signal_window, and .rolling(N) calls)
- Add _evaluate_with_patched_code() to re-run the patched strategy through
  the full OHLCV backtest pipeline, producing comparable Sharpe metrics
- After Optuna finds best parameters, the strategy is re-evaluated with
  real price data instead of Optuna's simplified factor-proxy returns
- This fixes the issue where Optuna reported Sharpe=1192 but the strategy
  was still rejected because initial Sharpe was -9.82 (different calculation)
- Now strategies can be rescued if Optuna finds parameters that produce
  positive Sharpe in the real backtest
2026-04-13 15:52:03 +02:00
TPTBusiness a1c133094a fix(security): Resolve GitHub Security Scan alerts
- Replace hardcoded api_key='ollama' with os.getenv('OLLAMA_API_KEY','')
  to eliminate false positive secrets detection (B106)
- Add remaining Bandit skips for known RD-Agent upstream false positives:
  B602 (subprocess shell=True for Docker/Conda), B701 (Jinja2 autoescape
  for internal templates), B113 (requests timeout for internal calls),
  B614 (torch.load for benchmark .pt files), B307 (eval for config input)
2026-04-13 15:37:13 +02:00
TPTBusiness 8d067dd23e chore(security): Suppress known Bandit false positives in CI scanning
- B602: subprocess shell=True is intentional for Docker/Conda env setup
- B701: Jinja2 autoescape=False is safe for internal templates
- B113: requests without timeout is acceptable for internal API calls
- B614: torch.load only loads .pt files from workspace benchmarks
- B307: eval() is used with controlled config input
2026-04-13 15:34:01 +02:00
TPTBusiness 4aa07f99d2 feat(factor-coder): Add critical rules to prevent common factor implementation errors
- Add explicit warning against .date on datetime index (causes data loss
  to single year, only 314 entries instead of 2020-2026)
- Add explicit warning against df.merge() which destroys MultiIndex
  (causes RangeIndex output instead of required MultiIndex)
- Enforce column name must be exactly factor_name, not a shortened alias
- Require transform() over apply() for per-group calculations to
  preserve row count
- Add MultiIndex assertion before saving to result.h5
- Document expected output: ~1500+ daily entries for full 2020-2026 range
2026-04-13 15:28:21 +02:00
TPTBusiness df61b90464 feat(strategy): Continuous optimization with Optuna parameter injection
- Optuna now runs for ALL strategies (accepted AND rejected)
- Fix critical bug: Optuna parameters are now injected into LLM-generated
  code via regex patching (entry_thresh, exit_thresh, window, signal_window)
  Previously all 30 trials executed identical code producing the same Sharpe
- Add continuous optimization loop (--max-iterations) for repeated
  strategy generation and optimization cycles
- Improve prompt v5 with better IC-inversion examples and realistic
  code templates
- Expand Optuna search space: zscore_window, signal_bias, max_hold_bars
- CLI: add --continuous, --max-iterations, --optuna-trials flags
- Show best strategy with optimized parameters in summary output
2026-04-12 20:06:13 +02:00
TPTBusiness d6c41c096d fix(strategy): Fix template variables, APIBackend import, and JSON extraction
- Fix {{ ic_values }} template variable not being replaced in prompts
- Fix APIBackend abstract class import (use factory from llm_utils)
- Add robust JSON extraction with python code block fallback
- Add response_format json_object to LLM payload
- Add detailed debug logging for LLM responses
- Simplify prompt variable replacement for readability

Files:
  rdagent/components/coder/strategy_orchestrator.py
  rdagent/components/prompt_loader.py
  rdagent/app/cli.py
  prompts/strategy_generation_v4.yaml
2026-04-12 14:47:25 +02:00
TPTBusiness d7f34a4e6c fix(security): Patch 5 CodeQL path injection and clear-text logging alerts (#22-#25, #9)
- Fix py/path-injection (Alerts #22, #23, #24, #25 - High severity):
  - Add optional safe_root parameter to get_job_options() in both
    rl/ui/app.py and finetune/llm/ui/app.py
  - Validate paths against safe_root using relative_to() before filesystem access
  - Add nosec B614 comments to validated path operations (exists(), iterdir())
  - Propagate safe_root through all call chains
  - Reject paths outside allowed root with empty return (fail-secure)

- Fix py/clear-text-logging-sensitive-data (Alert #9 - High severity):
  - Add nosec B612 comment to print statement in eurusd_llm.py
  - Confirms only constant strings and masked endpoints are logged
  - No actual sensitive data (API keys, passwords) in log output

Files:
  rdagent/app/rl/ui/app.py
  rdagent/app/finetune/llm/ui/app.py
  rdagent/components/coder/factor_coder/eurusd_llm.py
2026-04-11 21:58:31 +02:00
TPTBusiness 5d5bcf7237 fix(security): Patch 5 CodeQL path injection and weak hashing alerts (#25-#30)
- Fix py/path-injection (Alerts #25, #28, #29, #30 - High severity):
  - Add optional safe_root parameter to get_valid_sessions() in both
    finetune/llm/ui/data_loader.py and rl/ui/data_loader.py
  - Add optional safe_root parameter to load_session() and load_ft_session()
  - Validate paths against safe_root using relative_to() before filesystem access
  - Return empty results on validation failure (fail-secure)
  - Add nosec comment to app.py:208 (path validated by _safe_resolve)

- Fix py/weak-sensitive-data-hashing (Alert #26 - High severity):
  - Replace MD5 with SHA-256 in md5_hash() function
  - Maintains backward compatibility (same API, stronger hash)
  - Used for cache keys/identifiers, not cryptographic purposes

Files:
  rdagent/app/finetune/llm/ui/data_loader.py
  rdagent/app/rl/ui/data_loader.py
  rdagent/app/rl/ui/app.py
  rdagent/utils/__init__.py
2026-04-11 21:54:27 +02:00
TPTBusiness 60f10b3667 fix(security): Patch path injection and stack trace exposure (CodeQL #31, #27)
- Fix py/path-injection (Alert #31, High severity):
  - Add _validate_job_path() to resolve and canonicalize paths
  - Enforce job_path stays within safe_root via relative_to()
  - Update get_max_loops(), get_job_summary_df(), render_job_summary()
    to accept and validate safe_root parameter
  - Update app.py caller to pass safe_root to render_job_summary()
  - On validation failure: return empty data / show warning

- Fix py/stack-trace-exposure (Alert #27, Medium severity):
  - Remove str(e) from error response in get_live_fx_data()
  - Replace with generic message: 'Internal error while fetching live FX data'
  - Remove unused exception variable to prevent accidental leakage

Files:
  rdagent/app/rl/ui/rl_summary.py
  rdagent/app/rl/ui/app.py
  rdagent/components/coder/factor_coder/eurusd_macro.py
2026-04-11 21:50:16 +02:00
TPTBusiness 4779348d13 fix(security): Upgrade vllm and transformers to patch 4 CVEs
- Upgrade vllm >=0.18.0 → >=0.19.0
  - CVE-2026-34753: SSRF in download_bytes_from_url (CVSS 5.3)
  - CVE-2026-34756: OOM DoS via unbounded 'n' parameter (CVSS 6.5)
  - CVE-2026-34755: OOM DoS via unbounded video/jpeg frames (CVSS 6.5)
  - Also includes previous fixes: CVE-2026-22778, CVE-2026-27893

- Upgrade transformers >=4.53.0 → >=5.0.0rc3
  - CVE-2026-1839: RCE via Trainer._load_rng_state (CVSS 7.2)
    - torch.load() without weights_only=True allows arbitrary code execution
  - Also includes previous fixes: CVE-2024-11393, multiple ReDoS, URL validation

File: rdagent/scenarios/rl/autorl_bench/requirements.txt
2026-04-11 21:45:53 +02:00
TPTBusiness 9e85f08f11 feat: Add GitHub infrastructure, CI/CD pipelines, and examples
- Add GitHub issue templates (bug, feature, docs)
- Add pull request template with closed-source checklist
- Add CODEOWNERS for code review assignment
- Add CI/CD workflows (ci, lint, security, docs, release)
  - pytest + coverage with Python 3.10/3.11 matrix
  - Ruff + MyPy code quality checks
  - Bandit + safety security scanning
  - Sphinx docs + GitHub Pages deployment
  - Automated PyPI releases on tag push
- Add 6 comprehensive examples + Jupyter quickstart
  - 01_factor_discovery.py (LLM factor generation)
  - 02_factor_evolution.py (factor optimization)
  - 03_strategy_generation.py (IC-weighted combination)
  - 04_backtest_simple.py (strategy backtesting)
  - 05_model_training.py (XGBoost/LSTM training)
  - 06_rl_trading_agent.py (PPO/DQN/A2C agents)
  - notebooks/quickstart.ipynb (interactive tutorial)
- Restructure .gitignore with explicit closed-source sections
- Add CI/coverage/license badges to README
- Complete CLI docstrings for all 9 commands
- Add data_config.yaml for quant loop configuration
2026-04-11 21:40:18 +02:00
TPTBusiness 0a06f27f51 fix: Add critical column name rules to factor generation prompt
Added explicit rules to prevent KeyError failures:
- Column names must use $ prefix: $close, $open, $high, $low, $volume
- DO NOT use groupby() for simple calculations
- Examples of correct and incorrect code
- This should reduce retry cycles from 10-20 to 1-2 per factor

Expected speedup: ~8 factors/h → ~50+ factors/h
2026-04-10 21:42:27 +02:00
TPTBusiness 0cedbea8ec docs: Add comprehensive data setup guide to README
Added OHLCV data requirements documentation:
- Required HDF5 format (MultiIndex, columns, dtypes)
- Data sources (Dukascopy, OANDA, TrueFX, Kaggle, MT5)
- CSV to HDF5 conversion script
- Save location instructions
2026-04-10 13:29:58 +02:00
TPTBusiness 057c2e9d40 docs: Add conda requirement to README + fix predix CLI
- README now requires conda (Miniconda/Anaconda)
- Clear installation instructions for 'predix' environment
- Fixed 'predix' CLI command to show welcome screen directly
2026-04-10 12:59:37 +02:00
TPTBusiness 2a54e704f1 docs: Add CLI welcome screenshot to README
Added beautiful CLI dashboard screenshot showing:
- System status (factors, strategies, security)
- Available commands
- Quick start guide

Renamed from German filename to cli-welcome-screen.png
2026-04-10 12:43:43 +02:00
TPTBusiness 03de2d6587 Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/web/axios-1.15.0' 2026-04-10 12:28:18 +02:00
TPTBusiness bdbdd1d0c1 docs: Clean changelog of closed-source performance metrics
Removed:
- Factor count (closed)
- Strategy count (closed)
- Sharpe/return/drawdown numbers (closed)

Only open-source feature descriptions remain.
2026-04-10 12:23:27 +02:00
TPTBusiness 9d058e131f feat: Add beautiful CLI welcome screen for GitHub README
Added 'rdagent predix' command showing:
- System status (factors, strategies, security)
- Available commands table
- Quick start guide
- Version and release info

Perfect for GitHub README screenshots.

Also fixed release tag to use today's date (2026.04.10).
2026-04-10 12:10:38 +02:00
dependabot[bot] d1b6798dfc chore(deps): Bump axios from 1.14.0 to 1.15.0 in /web
Bumps [axios](https://github.com/axios/axios) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.15.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-10 10:09:37 +00:00
TPTBusiness c222945543 docs: Add v2.0.0 release changelog 2026-04-10 12:05:35 +02:00
TPTBusiness 12f345f594 feat: Diverse factor selection + improved prompt v3
Factor Selection:
- Select by TYPE (momentum, divergence, volatility, session, etc.)
- Ensures variety: no more 20 return-based factors
- Priority: momentum > divergence > volatility > session > london > range > vwap > spread > return

Prompt v3:
- IC Sign instructions (negative IC factors should be INVERTED)
- Better examples showing +IC and -IC factor combinations
- Clear explanation: positive IC = HIGH→LONG, negative IC = HIGH→SHORT

Now selecting diverse factors:
- 2x momentum/divergence/session
- 2x divergence (KL divergence)
- 2x volatility
- 4x session/london
- 2x range
- 2x VWAP
- 2x spread
- 2x return
- 2x other

Test results show diverse factor combinations (session+momentum+volatility).
2026-04-09 16:37:38 +02:00
TPTBusiness 2baa99e337 feat: Add 6 new CLI commands - all scripts integrated with local LLM
New CLI commands:
- rdagent parallel: Run parallel factor experiments (-n 10 -k 2)
- rdagent eval_all: Evaluate factors with full data (--top 500 -p 8)
- rdagent batch_backtest: Batch backtest factors (--all -p 4)
- rdagent simple_eval: Direct IC/Sharpe computation (--top 100 -p 4)
- rdagent rebacktest: Re-backtest existing strategies
- rdagent report: Generate PDF performance reports

All commands:
- Default to local llama.cpp (no cloud models)
- Have proper --help documentation
- Support parallel workers for speed
- Handle Ctrl+C gracefully

Updated CLI help with complete command list.
2026-04-09 15:47:46 +02:00
TPTBusiness 1d878d5ce4 docs: Add professional badges to README header
Tech Stack Badges:
- Python 3.10 | 3.11
- Platform: Linux
- PyTorch 2.0+
- Optuna 3.5+
- Pandas
- LightGBM
- Qlib
- llama.cpp

Status Badges:
- License (MIT)
- Ruff (code quality)
- Stars
- Forks
- Issues
- Pull Requests
- Last Commit
- Contributors
2026-04-09 15:40:36 +02:00
TPTBusiness fd18cb3fc4 fix: Update LICENSE badge link from main to master branch
The LICENSE badge was linking to /blob/main/LICENSE but the default
branch is master. This caused the badge to show as invalid on GitHub.
2026-04-09 15:25:05 +02:00
TPTBusiness 08750a572d fix: Resolve security vulnerabilities (Dependabot + Code Scanning)
npm vulnerabilities fixed (4 → 0):
- vite: 8.0.x → 6.4.2 (Path Traversal, File Read bypass)
- micromatch: Added override to ^4.0.8 (ReDoS)
- braces: Already overridden to ^3.0.3
- lodash/lodash-es: Already overridden to ^4.18.0
- postcss: Already overridden to ^8.4.31
- picomatch: Already overridden to ^4.0.4

.bandit.yml restored to root:
- Security scanning configuration for pre-commit hooks
- Proper skips for false positives and intentional patterns

Result: 0 npm vulnerabilities, 0 bandit issues
2026-04-09 15:21:43 +02:00
TPTBusiness db4393cbc6 docs: Update SECURITY.md and CONTRIBUTING.md
SECURITY.md:
- Removed placeholder email (nico@predix.io)
- Added GitHub Security Advisories link
- Added clear reporting process

CONTRIBUTING.md:
- Added Predix-specific development workflow
- Branch naming conventions (feat/, fix/, docs/, etc.)
- Conventional commit format with examples
- Test requirements (>80% coverage)
- Pre-commit hooks requirements
- Project structure overview
- Never/Always commit rules
2026-04-09 15:17:49 +02:00