import type { BotState } from '../hooks/useWebSocket'; interface MarketTickerProps { botState: BotState; } export const MarketTicker = ({ botState }: MarketTickerProps) => { const symbols = Object.keys(botState.symbols); return (

💹 Market Ticker

{symbols.length} Assets Active
{symbols.length === 0 && (
📡 Syncing market data for {botState.settings.maxOpenTrades * 3}+ assets...
)} {symbols.map(symbol => { const data = botState.symbols[symbol]; const isUp = data.change24h >= 0; return (
{symbol}
${data.price.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 4 })} {isUp ? '↑' : '↓'}{Math.abs(data.change24h).toFixed(2)}%
); })}
); };