const cryptoData = [
    { name: "BTC", price: "63,987.99", color: "#0ECB81" },
    { name: "ETH", price: "1,845.45", color: "#0ECB81" },
    { name: "BNB", price: "568.67", color: "#0ECB81" },
    { name: "SPCXB", price: "125.48", color: "#F6465D" }
];

const list = document.getElementById('crypto-list');
cryptoData.forEach(item => {
    list.innerHTML += `
        <div class="crypto-item">
            <span>${item.name}</span>
            <span>$${item.price}</span>
            <span style="color:${item.color}">${item.color === '#0ECB81' ? '+' : ''}${Math.random().toFixed(2)}%</span>
        </div>
    `;
});