TradingAgents/tests/portfolio
google-labs-jules[bot] 1ed46937d7 perf(portfolio): batch database writes during bulk SELL executions
Replaces the O(N) database operations in the `TradeExecutor`'s
`execute_decisions` SELL loop with a single `batch_remove_holdings`
call to the repository. The new repository method calculates updates
in memory, resolves duplicate operations on the same ticker, and issues
the updates via newly implemented `psycopg2.extras.execute_batch`
routines on the `SupabaseClient`.

Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
2026-03-21 20:06:45 +00:00
..
__init__.py feat: portfolio manager data foundation — docs, SQL migration, and module scaffolding 2026-03-20 10:40:48 +00:00
conftest.py feat: complete portfolio data foundation — psycopg2 client, repository, tests 2026-03-20 14:06:50 +01:00
test_candidate_prioritizer.py feat: Portfolio Manager Phases 2-5 — risk evaluation, candidate prioritization, LLM agents, trade executor 2026-03-20 14:38:48 +00:00
test_config.py test: add edge case for sum constraints validation 2026-03-21 08:22:53 +00:00
test_models.py feat: implement Portfolio models, ReportStore, and tests; fix SQL constraint 2026-03-20 11:16:39 +00:00
test_report_store.py feat: implement Portfolio models, ReportStore, and tests; fix SQL constraint 2026-03-20 11:16:39 +00:00
test_repository.py feat: add portfolio risk metrics module and LangChain agent tools 2026-03-20 14:42:43 +00:00
test_risk_evaluator.py feat: Portfolio Manager Phases 2-5 — risk evaluation, candidate prioritization, LLM agents, trade executor 2026-03-20 14:38:48 +00:00
test_risk_metrics.py feat: add portfolio risk metrics module and LangChain agent tools 2026-03-20 14:42:43 +00:00
test_trade_executor.py perf(portfolio): batch database writes during bulk SELL executions 2026-03-21 20:06:45 +00:00