mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-13 18:46:21 +02:00
Adding a new item (crypto, ETF, stablecoin, gulf symbol, etc.) previously required editing 2-4 files because the same list was hardcoded independently in seed scripts, RPC handlers, and frontend config. Following the proven shared/crypto.json pattern, extract 6 new shared JSON configs so each list has a single source of truth. New shared configs: - shared/stablecoins.json (ids + coinpaprika mappings) - shared/etfs.json (BTC spot ETF tickers + issuers) - shared/gulf.json (GCC indices, currencies, oil benchmarks) - shared/sectors.json (sector ETF symbols + names) - shared/commodities.json (VIX, gold, oil, gas, silver, copper) - shared/stocks.json (market symbols + yahoo-only set) All seed scripts, RPC handlers, and frontend config now import from these shared JSON files instead of maintaining independent copies.
17 lines
551 B
JSON
17 lines
551 B
JSON
{
|
|
"sectors": [
|
|
{ "symbol": "XLK", "name": "Tech" },
|
|
{ "symbol": "XLF", "name": "Finance" },
|
|
{ "symbol": "XLE", "name": "Energy" },
|
|
{ "symbol": "XLV", "name": "Health" },
|
|
{ "symbol": "XLY", "name": "Consumer" },
|
|
{ "symbol": "XLI", "name": "Industrial" },
|
|
{ "symbol": "XLP", "name": "Staples" },
|
|
{ "symbol": "XLU", "name": "Utilities" },
|
|
{ "symbol": "XLB", "name": "Materials" },
|
|
{ "symbol": "XLRE", "name": "Real Est" },
|
|
{ "symbol": "XLC", "name": "Comms" },
|
|
{ "symbol": "SMH", "name": "Semis" }
|
|
]
|
|
}
|