mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
Remove -USD suffix from crypto symbols in display while maintaining full symbol for API calls
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user