mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-02 01:27:24 -04:00
- Removed call to _write_results_to_db() in execute_async() - Deleted entire _write_results_to_db() method (lines 435-531) - Deleted helper method _calculate_portfolio_value() (lines 533-557) - Position tracking now exclusively handled by trade tools This method was calling non-existent methods (get_positions(), get_last_trade(), get_current_prices()) on BaseAgent, resulting in corrupt records with cash=0 and holdings=[]. Removal fixes bugs where cash resets to initial value and positions are lost over weekends.