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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_candidate_prioritizer.py | ||
| test_config.py | ||
| test_models.py | ||
| test_report_store.py | ||
| test_repository.py | ||
| test_risk_evaluator.py | ||
| test_risk_metrics.py | ||
| test_trade_executor.py | ||