Skip to content

Commit 7a5015e

Browse files
authored
Merge pull request calesthio#89 from calesthio/codex/fix-live-market-indexes
Fix live market index symbols
2 parents 212fefd + ef2c5ed commit 7a5015e

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

apis/sources/yfinance.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const BASE = 'https://query1.finance.yahoo.com/v8/finance/chart';
99
// Symbols to track — covers broad market, rates, commodities, crypto, volatility
1010
const SYMBOLS = {
1111
// Indexes / ETFs
12-
SPY: 'S&P 500',
13-
QQQ: 'Nasdaq 100',
14-
DIA: 'Dow Jones',
15-
IWM: 'Russell 2000',
12+
'^GSPC': 'S&P 500',
13+
'^IXIC': 'Nasdaq Composite',
14+
'^DJI': 'Dow Jones',
15+
'^RUT': 'Russell 2000',
1616
// Rates / Credit
1717
TLT: '20Y+ Treasury',
1818
HYG: 'High Yield Corp',
@@ -117,7 +117,7 @@ export async function collect() {
117117
failed,
118118
timestamp: new Date().toISOString(),
119119
},
120-
indexes: pickGroup(quotes, ['SPY', 'QQQ', 'DIA', 'IWM']),
120+
indexes: pickGroup(quotes, ['^GSPC', '^IXIC', '^DJI', '^RUT']),
121121
rates: pickGroup(quotes, ['TLT', 'HYG', 'LQD']),
122122
commodities: pickGroup(quotes, ['GC=F', 'SI=F', 'CL=F', 'BZ=F', 'NG=F']),
123123
crypto: pickGroup(quotes, ['BTC-USD', 'ETH-USD']),

dashboard/public/jarvis.html

Lines changed: 9 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)