Inversiones

Panel Cripto Online

Published

on

elfinancierodigital.com
Panel Cripto
miércoles 29 de julio de 2026
Cargando...
Mercado Global
···
···
···
···
···
Trending (más buscadas en 24h)
Mayores Subas y Bajas (24h · top 100 por cap. de mercado)
📈 Suben
Cargando...
📉 Bajan
Cargando...
Top 100 Criptomonedas
# Moneda Precio 1h 24h 7d Cap. Mercado Volumen 24h Gráf. 7d
Cargando datos de CoinGecko...
Fuentes: CoinGecko (precios, mercado, trending) · Alternative.me (Índice Miedo & Codicia). Datos con demora de mercado. No constituyen asesoramiento financiero ni recomendación de inversión.
'; document.getElementById('cx-global').innerHTML=html; loadFearGreed(); }) .catch(function(){ document.getElementById('cx-global').innerHTML='
Mercado Global
'; }); } function cardHTML(label,val,chNum,sub){ var c = chNum!=null ? cls(chNum) : ''; var chHtml = chNum!=null ? '
'+arr(chNum)+pct(chNum)+'
' : (sub?'
'+sub+'
':''); return '
'+label+'
'+val+'
'+chHtml+(chNum!=null&&sub?'
'+sub+'
':'')+'
'; } function fngPlaceholder(){ return '
Miedo & Codicia
···
'; } /* ══ 3) FEAR & GREED INDEX ══ */ function loadFearGreed(){ fetch('https://api.alternative.me/fng/?limit=1') .then(function(r){return r.json();}) .then(function(res){ var d=res.data[0]; var val=parseInt(d.value,10); var labelEs={ 'Extreme Fear':['Miedo Extremo','fng-extreme-fear'], 'Fear':['Miedo','fng-fear'], 'Neutral':['Neutral','fng-neutral'], 'Greed':['Codicia','fng-greed'], 'Extreme Greed':['Codicia Extrema','fng-extreme-greed'] }; var lab = labelEs[d.value_classification] || [d.value_classification,'fng-neutral']; var slot=document.getElementById('cx-fng-slot'); if(slot){ slot.innerHTML='
Miedo & Codicia
'+ '
'+val+''+lab[0]+'
'; } }) .catch(function(){ var slot=document.getElementById('cx-fng-slot'); if(slot) slot.innerHTML='
Miedo & Codicia
'; }); } /* ══ 4) TRENDING ══ */ function loadTrending(){ fetch('https://api.coingecko.com/api/v3/search/trending') .then(function(r){return r.json();}) .then(function(res){ var items=(res.coins||[]).slice(0,8); if(!items.length){document.getElementById('cx-trending').innerHTML='Sin datos';return;} document.getElementById('cx-trending').innerHTML=items.map(function(it){ var c=it.item; return '
'+c.name+'#'+(c.market_cap_rank||'—')+'
'; }).join(''); }) .catch(function(){ document.getElementById('cx-trending').innerHTML='No disponible en este momento'; }); } /* ══ 5) GAINERS / LOSERS (derivado de COINS, sin llamada extra) ══ */ function renderGainersLosers(){ var withCh = COINS.filter(function(c){return c.ch24h!=null;}); var sorted = withCh.slice().sort(function(a,b){return b.ch24h-a.ch24h;}); var gainers = sorted.slice(0,5); var losers = sorted.slice(-5).reverse(); function row(c){ return '
'+c.name+' '+c.symbol+'
'+ '
'+arr(c.ch24h)+pct(c.ch24h)+'
'; } document.getElementById('cx-gainers').innerHTML = gainers.map(row).join('') || '
Sin datos
'; document.getElementById('cx-losers').innerHTML = losers.map(row).join('') || '
Sin datos
'; } /* ══ 6) TABLA PRINCIPAL (render + orden + filtro) ══ */ function renderTable(){ var q = (document.getElementById('cx-search').value || '').trim().toLowerCase(); var rows = COINS.filter(function(c){ if(!q) return true; return c.name.toLowerCase().indexOf(q)>-1 || c.symbol.toLowerCase().indexOf(q)>-1; }); rows = rows.slice().sort(function(a,b){ var va=a[sortKey], vb=b[sortKey]; if(sortKey==='name') return sortDir*va.localeCompare(vb); va = (va==null) ? -Infinity : va; vb = (vb==null) ? -Infinity : vb; return sortDir*(va-vb); }); if(!rows.length){ document.getElementById('cx-tbody').innerHTML='Sin resultados para tu búsqueda.'; return; } document.getElementById('cx-tbody').innerHTML = rows.map(function(c){ var positive = (c.ch7d==null?true:c.ch7d>=0); return ''+ ''+c.rank+''+ '
'+c.name+''+c.symbol+'
'+ ''+usd(c.price)+''+ ''+pct(c.ch1h)+''+ ''+pct(c.ch24h)+''+ ''+pct(c.ch7d)+''+ ''+compact(c.mcap)+''+ ''+compact(c.vol)+''+ ''+sparkSVG(c.sparkline,positive)+''+ ''; }).join(''); } /* click en headers para ordenar */ document.addEventListener('click', function(e){ var th = e.target.closest('#efdcx table.cxtab th[data-k]'); if(!th) return; var k = th.getAttribute('data-k'); if(sortKey===k) sortDir*=-1; else {sortKey=k; sortDir = (k==='name') ? 1 : -1;} renderTable(); }); document.addEventListener('input', function(e){ if(e.target && e.target.id==='cx-search') renderTable(); }); /* ══ ORQUESTADOR ══ */ window.efdcxLoad = function(){ document.getElementById('cx-ts').innerHTML='Actualizando...'; Promise.all([loadMarkets(), loadGlobal(), loadTrending()]).finally(function(){ document.getElementById('cx-ts').textContent = hora(); }); }; efdcxLoad(); setInterval(efdcxLoad, 5*60*1000); // igual que tu v6: refresco cada 5 min })();

Leave a Reply

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Trending

Copyright © 2026 Idea & Desarrollo Claudio R. Parrinello. las notas son realizadas por Claudio R. Parrinello en su totalidad, no existe ninguna otra persona que represente este portal salvo Claudio R. Parrinello. Los contenidos presentados en este portal son exclusivamente informativos y no deben interpretarse como una recomendación de inversión ni de uso de las herramientas mencionadas. elfinancierodigital.com no asume responsabilidad por los resultados derivados de su utilización y/o aplicación y recomienda a los lectores realizar su propia investigación antes de tomar decisiones financieras.