mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +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.
11 lines
277 B
JSON
11 lines
277 B
JSON
{
|
|
"ids": ["tether", "usd-coin", "dai", "first-digital-usd", "ethena-usde"],
|
|
"coinpaprika": {
|
|
"tether": "usdt-tether",
|
|
"usd-coin": "usdc-usd-coin",
|
|
"dai": "dai-dai",
|
|
"first-digital-usd": "fdusd-first-digital-usd",
|
|
"ethena-usde": "usde-ethena-usde"
|
|
}
|
|
}
|