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> |
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| candidate_prioritizer.py | ||
| config.py | ||
| exceptions.py | ||
| models.py | ||
| portfolio_states.py | ||
| report_store.py | ||
| repository.py | ||
| risk_evaluator.py | ||
| risk_metrics.py | ||
| supabase_client.py | ||
| trade_executor.py | ||