mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +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}%")
|
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 = {
|
stock_data = {
|
||||||
"symbol": symbol,
|
"symbol": display_symbol, # Use the display symbol without -USD
|
||||||
"name": name,
|
"name": name,
|
||||||
"price": current_price,
|
"price": current_price,
|
||||||
"change": change_pct,
|
"change": change_pct,
|
||||||
|
|||||||
Reference in New Issue
Block a user