
${token.symbol}
Latest: ${recentTx.transaction_type.toUpperCase()} ${recentTx.amount_sol.toFixed(3)} SOL
${txCount} transaction${txCount > 1 ? 's' : ''} in last 7 days • ${new Date(recentTx.transaction_time).toLocaleString()}
`;
}).join('');
} else {
positionsDiv.innerHTML = '

${group.symbol}
${pnlSign}${group.netPnL.toFixed(3)} SOL
Net P&L: Spent ${group.totalSpent.toFixed(3)} → Received ${group.totalReceived.toFixed(3)} SOL
Latest: ${formattedDate} • ${group.transactions.length} transaction${group.transactions.length > 1 ? 's' : ''}
`;
});
tradesDiv.innerHTML = recentTrades.join('');
} else {
tradesDiv.innerHTML = '