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

@@ -13,6 +13,8 @@ const DEFAULT_NUMERIC_THRESHOLDS = {
wti: 3,
brent: 3,
natgas: 5,
gold: 2,
silver: 3,
unemployment: 2,
fed_funds: 1,
'10y_yield': 3,
@@ -41,6 +43,8 @@ const NUMERIC_METRICS = [
{ key: 'wti', extract: d => d.energy?.wti, label: 'WTI Crude' },
{ key: 'brent', extract: d => d.energy?.brent, label: 'Brent Crude' },
{ key: 'natgas', extract: d => d.energy?.natgas, label: 'Natural Gas' },
{ key: 'gold', extract: d => d.metals?.gold, label: 'Gold' },
{ key: 'silver', extract: d => d.metals?.silver, label: 'Silver' },
{ key: 'unemployment', extract: d => d.bls?.find(b => b.id === 'LNS14000000' || b.id === 'UNRATE')?.value, label: 'Unemployment' },
{ key: 'fed_funds', extract: d => d.fred?.find(f => f.id === 'DFF')?.value, label: 'Fed Funds Rate' },
{ key: '10y_yield', extract: d => d.fred?.find(f => f.id === 'DGS10')?.value, label: '10Y Yield' },