Remove -USD suffix from crypto symbols in display while maintaining full symbol for API calls

This commit is contained in:
ChuckBuilds
2025-04-23 16:17:06 -05:00
parent f684f914c7
commit 6ab63dbd03

View File

@@ -214,8 +214,11 @@ class StockManager:
logger.debug(f"Processed data for {symbol}: price={current_price}, change={change_pct}%")
# Remove -USD suffix from crypto symbols for display
display_symbol = symbol.replace('-USD', '') if is_crypto else symbol
stock_data = {
"symbol": symbol,
"symbol": display_symbol, # Use the display symbol without -USD
"name": name,
"price": current_price,
"change": change_pct,