refactor: Optimize portfolio value calculation and remove debug print statements

This commit is contained in:
Bobby (aider) 2025-02-18 20:52:14 -08:00
parent a1a91291f3
commit c4c8a89efd

View File

@ -255,9 +255,6 @@ def trading_journal_page():
total_invested_value += position_value
total_paper_pl += (current_price - avg_entry) * shares
print(f"Debug - Total Invested: ${total_invested_value:.2f}") # Debug line
print(f"Debug - Cash Balance: ${cash_balance:.2f}") # Debug line
# Calculate total portfolio value (cash + invested value)
total_portfolio_value = cash_balance + total_invested_value