fix: Resolve syntax error in portfolio value display condition

This commit is contained in:
Bobby (aider) 2025-02-10 23:15:12 -08:00
parent 7beaee7d10
commit cfe17976b2

View File

@ -644,7 +644,7 @@ def trading_system_page():
# Get latest portfolio value
portfolio_data = get_latest_portfolio_value()
if portfolio_
if portfolio_data:
st.metric("Current Portfolio Value", f"${portfolio_data['total_value']:,.2f}")
st.metric("Cash Balance", f"${portfolio_data['cash_balance']:,.2f}")
st.text(f"Last Updated: {portfolio_data['date']}")