feat(markets): surface gold and silver across dashboard and briefs

This commit is contained in:
calesthio
2026-03-28 22:53:23 -07:00
parent 3f3d050382
commit 1b80539cdc
7 changed files with 46 additions and 9 deletions

View File

@@ -87,6 +87,7 @@ if (telegramAlerter.isConfigured) {
const tg = currentData.tg || {};
const energy = currentData.energy || {};
const metals = currentData.metals || {};
const delta = memory.getLastDelta();
const ideas = (currentData.ideas || []).slice(0, 3);
@@ -106,9 +107,10 @@ if (telegramAlerter.isConfigured) {
// Key metrics
const vix = currentData.fred?.find(f => f.id === 'VIXCLS');
const hy = currentData.fred?.find(f => f.id === 'BAMLH0A0HYM2');
if (vix || energy.wti) {
if (vix || energy.wti || metals.gold || metals.silver) {
sections.push(`📊 VIX: ${vix?.value || '--'} | WTI: $${energy.wti || '--'} | Brent: $${energy.brent || '--'}`);
if (hy) sections.push(` HY Spread: ${hy.value} | NatGas: $${energy.natgas || '--'}`);
sections.push(` Gold: $${metals.gold || '--'} | Silver: $${metals.silver || '--'}${hy ? ` | HY Spread: ${hy.value}` : ''}`);
sections.push(` NatGas: $${energy.natgas || '--'}`);
sections.push('');
}
@@ -182,6 +184,7 @@ if (discordAlerter.isConfigured) {
const tg = currentData.tg || {};
const energy = currentData.energy || {};
const metals = currentData.metals || {};
const delta = memory.getLastDelta();
const ideas = (currentData.ideas || []).slice(0, 3);
@@ -194,9 +197,10 @@ if (discordAlerter.isConfigured) {
const vix = currentData.fred?.find(f => f.id === 'VIXCLS');
const hy = currentData.fred?.find(f => f.id === 'BAMLH0A0HYM2');
if (vix || energy.wti) {
if (vix || energy.wti || metals.gold || metals.silver) {
sections.push(`📊 VIX: ${vix?.value || '--'} | WTI: $${energy.wti || '--'} | Brent: $${energy.brent || '--'}`);
if (hy) sections.push(` HY Spread: ${hy.value} | NatGas: $${energy.natgas || '--'}`);
sections.push(` Gold: $${metals.gold || '--'} | Silver: $${metals.silver || '--'}${hy ? ` | HY Spread: ${hy.value}` : ''}`);
sections.push(` NatGas: $${energy.natgas || '--'}`);
sections.push('');
}