import http from 'http';

http.get('http://localhost:5000/api/status', (res) => {
    let data = '';
    res.on('data', (chunk) => { data += chunk; });
    res.on('end', () => {
        try {
            const botState = JSON.parse(data);
            console.log('--- LIVE BOT ANALYSIS STATUS ---');
            Object.entries(botState.symbols).forEach(([symbol, details]: [string, any]) => {
                console.log(`📍 ${symbol}: Signal=${details.signal}`);
            });
        } catch (e: any) {
            console.error('Error:', e.message);
        }
    });
});
