refactor: Optimize portfolio value calculation and remove debug print statements
This commit is contained in:
parent
a1a91291f3
commit
c4c8a89efd
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user