Merge pull request #89 from calesthio/codex/fix-live-market-indexes

Fix live market index symbols
This commit is contained in:
Calesthio
2026-04-03 09:27:19 -07:00
committed by GitHub
2 changed files with 14 additions and 8 deletions

View File

@@ -9,10 +9,10 @@ const BASE = 'https://query1.finance.yahoo.com/v8/finance/chart';
// Symbols to track — covers broad market, rates, commodities, crypto, volatility
const SYMBOLS = {
// Indexes / ETFs
SPY: 'S&P 500',
QQQ: 'Nasdaq 100',
DIA: 'Dow Jones',
IWM: 'Russell 2000',
'^GSPC': 'S&P 500',
'^IXIC': 'Nasdaq Composite',
'^DJI': 'Dow Jones',
'^RUT': 'Russell 2000',
// Rates / Credit
TLT: '20Y+ Treasury',
HYG: 'High Yield Corp',
@@ -117,7 +117,7 @@ export async function collect() {
failed,
timestamp: new Date().toISOString(),
},
indexes: pickGroup(quotes, ['SPY', 'QQQ', 'DIA', 'IWM']),
indexes: pickGroup(quotes, ['^GSPC', '^IXIC', '^DJI', '^RUT']),
rates: pickGroup(quotes, ['TLT', 'HYG', 'LQD']),
commodities: pickGroup(quotes, ['GC=F', 'SI=F', 'CL=F', 'BZ=F', 'NG=F']),
crypto: pickGroup(quotes, ['BTC-USD', 'ETH-USD']),

File diff suppressed because one or more lines are too long