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

@@ -73,6 +73,15 @@ function compactSweepForLLM(data, delta, previousIdeas) {
sections.push(`ENERGY: WTI=$${data.energy.wti}, Brent=$${data.energy.brent}, NatGas=$${data.energy.natgas}, CrudeStocks=${data.energy.crudeStocks}bbl`);
}
// Metals
if (data.metals?.gold != null || data.metals?.silver != null) {
const gold = data.metals?.gold != null ? `$${data.metals.gold}` : 'n/a';
const silver = data.metals?.silver != null ? `$${data.metals.silver}` : 'n/a';
const goldChg = data.metals?.goldChangePct != null ? ` (${data.metals.goldChangePct >= 0 ? '+' : ''}${data.metals.goldChangePct}%)` : '';
const silverChg = data.metals?.silverChangePct != null ? ` (${data.metals.silverChangePct >= 0 ? '+' : ''}${data.metals.silverChangePct}%)` : '';
sections.push(`METALS: Gold=${gold}${goldChg}, Silver=${silver}${silverChg}`);
}
// BLS
if (data.bls?.length) {
sections.push(`LABOR: ${data.bls.map(b => `${b.id}=${b.value}`).join(', ')}`);