TradingAgents/tradingagents/portfolio
ahmet guzererler e4f5d70756
feat(risk): fallback to sector ETF proxy for <30 days history (#130)
Update compute_holding_risk and compute_portfolio_risk to use
a mathematical risk floor. If a stock has < 30 days of price history,
the risk logic now substitutes its returns with its Sector ETF (e.g. XLF),
"SPY", or the benchmark_prices array to ensure the portfolio manager agent
receives coherent, baseline risk values (VaR, Sharpe, Sortino, max DD).
Sets is_proxy_risk=True when applied.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
2026-03-27 11:20:01 +01:00
..
migrations Add stop_loss and take_profit fields to Trade entries in database, API, and UI 2026-03-23 21:12:01 +00:00
__init__.py Merge branch 'main' into copilot/refactor-agent-workflows-and-risk-metrics 2026-03-21 02:30:18 +01:00
candidate_prioritizer.py feat: Add macro scanner feedback loop and lessons memory (#124) 2026-03-26 23:44:44 +01:00
config.py feat: make reports root directory configurable via env var 2026-03-24 00:15:04 +01:00
dual_report_store.py feat: introduce flow_id with timestamp-based report versioning 2026-03-26 14:13:50 +01:00
exceptions.py feat: portfolio manager data foundation — docs, SQL migration, and module scaffolding 2026-03-20 10:40:48 +00:00
lesson_store.py feat: Add macro scanner feedback loop and lessons memory (#124) 2026-03-26 23:44:44 +01:00
memory_loader.py feat: Add macro scanner feedback loop and lessons memory (#124) 2026-03-26 23:44:44 +01:00
models.py Add stop_loss and take_profit fields to Trade entries in database, API, and UI 2026-03-23 21:12:01 +00:00
mongo_report_store.py feat: introduce flow_id with timestamp-based report versioning 2026-03-26 14:13:50 +01:00
portfolio_states.py feat: PM brain upgrade — macro/micro agents & memory split (#123) 2026-03-26 12:55:24 +01:00
report_store.py feat: load flow_id in FE to resume runs and fix max_tickers cap (#113) 2026-03-26 07:10:42 +01:00
repository.py Merge branch 'main' into feature/portfolio-resumability-and-cleanup 2026-03-24 03:32:09 +01:00
risk_evaluator.py feat(risk): fallback to sector ETF proxy for <30 days history (#130) 2026-03-27 11:20:01 +01:00
risk_metrics.py perf(risk_metrics): optimize _percentile using heapq 2026-03-21 20:05:29 +00:00
selection_reflector.py feat: Add macro scanner feedback loop and lessons memory (#124) 2026-03-26 23:44:44 +01:00
store_factory.py feat: load flow_id in FE to resume runs and fix max_tickers cap (#113) 2026-03-26 07:10:42 +01:00
supabase_client.py fix(supabase_client): enhance cursor method to reconnect on dropped connection 2026-03-25 01:03:10 +01:00
trade_executor.py Add stop_loss and take_profit fields to Trade entries in database, API, and UI 2026-03-23 21:12:01 +00:00