diff --git a/static/index.html b/static/index.html index 5e55ee0..8070d32 100644 --- a/static/index.html +++ b/static/index.html @@ -362,38 +362,54 @@ let marketRefreshInterval = null; function refreshMarketData() { const el = document.getElementById('tab-market'); if (!el || el.classList.contains('hidden')) return; - fetchJSON('/api/market').then(d => { - const sectors = d.sectors || []; - const insights = d.insights || []; - const potentials = d.potential_stocks || []; + Promise.all([ + fetchJSON('/api/market'), + fetchJSON('/api/signals'), + ]).then(([mkt, signals]) => { + const sectors = mkt.sectors || []; + const sigs = signals || []; + const xiaoguo = sigs.filter(s => s.source === 'xiaoguo'); + const trend = sigs.filter(s => s.source !== 'xiaoguo'); el.innerHTML = ` -