TradingAgents/tradingagents
google-labs-jules[bot] e14d07ea81 perf(risk_metrics): optimize _percentile using heapq
Optimize the _percentile calculation to use heapq.nsmallest or heapq.nlargest when requesting small extreme percentiles (like 5% VaR) from large lists, falling back to sorted() only when necessary. This avoids fully sorting the entire array.

Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
2026-03-21 20:05:29 +00:00
..
agents Merge pull request #61 from aguzererler/fix/agent-utils-unused-imports-948671579039994874 2026-03-21 17:35:19 +01:00
dataflows 🧪 Resolve PRs #56, #58, and #60 2026-03-21 16:51:49 +00:00
graph Merge pull request #61 from aguzererler/fix/agent-utils-unused-imports-948671579039994874 2026-03-21 17:35:19 +01:00
llm_clients Sync fork with upstream TauricResearch/TradingAgents (v0.2.1) (#12) 2026-03-18 07:00:37 +01:00
pipeline feat: unified report paths, structured observability logging, and memory system update (#22) 2026-03-19 09:06:40 +01:00
portfolio perf(risk_metrics): optimize _percentile using heapq 2026-03-21 20:05:29 +00:00
__init__.py Sync fork with upstream TauricResearch/TradingAgents (v0.2.1) (#12) 2026-03-18 07:00:37 +01:00
daily_digest.py feat: daily digest consolidation and Google NotebookLM sync (#23) 2026-03-19 12:21:03 +01:00
default_config.py fix(tests): complete PR #26 — enforce socket isolation in unit tier and add test suite reference doc (#30) 2026-03-19 17:41:25 +01:00
notebook_sync.py feat: NotebookLM sync with date-specific sources and consolidation (#28) 2026-03-19 15:39:25 +01:00
observability.py feat: unified report paths, structured observability logging, and memory system update (#22) 2026-03-19 09:06:40 +01:00
report_paths.py feat: daily digest consolidation and Google NotebookLM sync (#23) 2026-03-19 12:21:03 +01:00