feat(markets): surface gold and silver across dashboard and briefs
This commit is contained in:
12
server.mjs
12
server.mjs
@@ -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('');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user