fix: Resolve syntax error in get_current_prices function

This commit is contained in:
Bobby (aider) 2025-02-10 11:06:59 -08:00
parent 1416d1b912
commit cfa3e67417

View File

@ -419,7 +419,7 @@ def get_current_prices(tickers: list) -> dict:
else:
# Handle multiple tickers
for ticker in tickers:
if (ticker, 'Close') in
if (ticker, 'Close') in data:
prices[ticker] = data[ticker]['Close'].iloc[-1]
return prices