File size: 15,983 Bytes
9d2d895 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | // Finance/Trading variant - finance.worldmonitor.app
import type { PanelConfig, MapLayers } from '@/types';
import type { VariantConfig } from './base';
// Re-export base config
export * from './base';
// Finance-specific exports
export * from '../finance-geo';
// Re-export feeds infrastructure
export {
SOURCE_TIERS,
getSourceTier,
SOURCE_TYPES,
getSourceType,
getSourcePropagandaRisk,
type SourceRiskProfile,
type SourceType,
} from '../feeds';
// Finance-specific FEEDS configuration
import type { Feed } from '@/types';
import { rssProxyUrl } from '@/utils';
const rss = rssProxyUrl;
export const FEEDS: Record<string, Feed[]> = {
// Core Markets & Trading News (all free RSS / Google News proxies)
markets: [
{ name: 'CNBC', url: rss('https://www.cnbc.com/id/100003114/device/rss/rss.html') },
{ name: 'MarketWatch', url: rss('https://news.google.com/rss/search?q=site:marketwatch.com+markets+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Yahoo Finance', url: rss('https://finance.yahoo.com/rss/topstories') },
{ name: 'Seeking Alpha', url: rss('https://seekingalpha.com/market_currents.xml') },
{ name: 'Reuters Markets', url: rss('https://news.google.com/rss/search?q=site:reuters.com+markets+stocks+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Bloomberg Markets', url: rss('https://news.google.com/rss/search?q=site:bloomberg.com+markets+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Investing.com', url: rss('https://news.google.com/rss/search?q=site:investing.com+markets+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Nikkei Asia', url: rss('https://news.google.com/rss/search?q=site:asia.nikkei.com+markets+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
// Forex & Currencies
forex: [
{ name: 'Forex News', url: rss('https://news.google.com/rss/search?q=("forex"+OR+"currency"+OR+"FX+market")+trading+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Dollar Watch', url: rss('https://news.google.com/rss/search?q=("dollar+index"+OR+DXY+OR+"US+dollar"+OR+"euro+dollar")+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Central Bank Rates', url: rss('https://news.google.com/rss/search?q=("central+bank"+OR+"interest+rate"+OR+"rate+decision"+OR+"monetary+policy")+when:2d&hl=en-US&gl=US&ceid=US:en') },
],
// Fixed Income & Bonds
bonds: [
{ name: 'Bond Market', url: rss('https://news.google.com/rss/search?q=("bond+market"+OR+"treasury+yields"+OR+"bond+yields"+OR+"fixed+income")+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Treasury Watch', url: rss('https://news.google.com/rss/search?q=("US+Treasury"+OR+"Treasury+auction"+OR+"10-year+yield"+OR+"2-year+yield")+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Corporate Bonds', url: rss('https://news.google.com/rss/search?q=("corporate+bond"+OR+"high+yield"+OR+"investment+grade"+OR+"credit+spread")+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
// Commodities & Futures
commodities: [
{ name: 'Oil & Gas', url: rss('https://news.google.com/rss/search?q=(oil+price+OR+OPEC+OR+"natural+gas"+OR+"crude+oil"+OR+WTI+OR+Brent)+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Gold & Metals', url: rss('https://news.google.com/rss/search?q=(gold+price+OR+silver+price+OR+copper+OR+platinum+OR+"precious+metals")+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Agriculture', url: rss('https://news.google.com/rss/search?q=(wheat+OR+corn+OR+soybeans+OR+coffee+OR+sugar)+price+OR+commodity+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Commodity Trading', url: rss('https://news.google.com/rss/search?q=("commodity+trading"+OR+"futures+market"+OR+CME+OR+NYMEX+OR+COMEX)+when:2d&hl=en-US&gl=US&ceid=US:en') },
],
// Crypto & Digital Assets
crypto: [
{ name: 'CoinDesk', url: rss('https://www.coindesk.com/arc/outboundfeeds/rss/') },
{ name: 'Cointelegraph', url: rss('https://cointelegraph.com/rss') },
{ name: 'The Block', url: rss('https://news.google.com/rss/search?q=site:theblock.co+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Crypto News', url: rss('https://news.google.com/rss/search?q=(bitcoin+OR+ethereum+OR+crypto+OR+"digital+assets")+when:1d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'DeFi News', url: rss('https://news.google.com/rss/search?q=(DeFi+OR+"decentralized+finance"+OR+DEX+OR+"yield+farming")+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
// Central Banks & Monetary Policy
centralbanks: [
{ name: 'Federal Reserve', url: rss('https://www.federalreserve.gov/feeds/press_all.xml') },
{ name: 'ECB Watch', url: rss('https://news.google.com/rss/search?q=("European+Central+Bank"+OR+ECB+OR+Lagarde)+monetary+policy+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'BoJ Watch', url: rss('https://news.google.com/rss/search?q=("Bank+of+Japan"+OR+BoJ)+monetary+policy+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'BoE Watch', url: rss('https://news.google.com/rss/search?q=("Bank+of+England"+OR+BoE)+monetary+policy+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'PBoC Watch', url: rss('https://news.google.com/rss/search?q=("People%27s+Bank+of+China"+OR+PBoC+OR+PBOC)+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Global Central Banks', url: rss('https://news.google.com/rss/search?q=("rate+hike"+OR+"rate+cut"+OR+"interest+rate+decision")+central+bank+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
// Economic Data & Indicators
economic: [
{ name: 'Economic Data', url: rss('https://news.google.com/rss/search?q=(CPI+OR+inflation+OR+GDP+OR+"jobs+report"+OR+"nonfarm+payrolls"+OR+PMI)+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Trade & Tariffs', url: rss('https://news.google.com/rss/search?q=(tariff+OR+"trade+war"+OR+"trade+deficit"+OR+sanctions)+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Housing Market', url: rss('https://news.google.com/rss/search?q=("housing+market"+OR+"home+prices"+OR+"mortgage+rates"+OR+REIT)+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
// IPOs & Earnings
ipo: [
{ name: 'IPO News', url: rss('https://news.google.com/rss/search?q=(IPO+OR+"initial+public+offering"+OR+SPAC+OR+"direct+listing")+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Earnings Reports', url: rss('https://news.google.com/rss/search?q=("earnings+report"+OR+"quarterly+earnings"+OR+"revenue+beat"+OR+"earnings+miss")+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'M&A News', url: rss('https://news.google.com/rss/search?q=("merger"+OR+"acquisition"+OR+"takeover+bid"+OR+"buyout")+billion+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
// Derivatives & Options
derivatives: [
{ name: 'Options Market', url: rss('https://news.google.com/rss/search?q=("options+market"+OR+"options+trading"+OR+"put+call+ratio"+OR+VIX)+when:2d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Futures Trading', url: rss('https://news.google.com/rss/search?q=("futures+trading"+OR+"S%26P+500+futures"+OR+"Nasdaq+futures")+when:1d&hl=en-US&gl=US&ceid=US:en') },
],
// Fintech & Trading Technology
fintech: [
{ name: 'Fintech News', url: rss('https://news.google.com/rss/search?q=(fintech+OR+"payment+technology"+OR+"neobank"+OR+"digital+banking")+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Trading Tech', url: rss('https://news.google.com/rss/search?q=("algorithmic+trading"+OR+"trading+platform"+OR+"quantitative+finance")+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Blockchain Finance', url: rss('https://news.google.com/rss/search?q=("blockchain+finance"+OR+"tokenization"+OR+"digital+securities"+OR+CBDC)+when:7d&hl=en-US&gl=US&ceid=US:en') },
],
// Regulation & Compliance
regulation: [
{ name: 'SEC', url: rss('https://www.sec.gov/news/pressreleases.rss') },
{ name: 'Financial Regulation', url: rss('https://news.google.com/rss/search?q=(SEC+OR+CFTC+OR+FINRA+OR+FCA)+regulation+OR+enforcement+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Banking Rules', url: rss('https://news.google.com/rss/search?q=(Basel+OR+"capital+requirements"+OR+"banking+regulation")+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Crypto Regulation', url: rss('https://news.google.com/rss/search?q=(crypto+regulation+OR+"digital+asset"+regulation+OR+"stablecoin"+regulation)+when:7d&hl=en-US&gl=US&ceid=US:en') },
],
// Institutional Investors
institutional: [
{ name: 'Hedge Fund News', url: rss('https://news.google.com/rss/search?q=("hedge+fund"+OR+"Bridgewater"+OR+"Citadel"+OR+"Renaissance")+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Private Equity', url: rss('https://news.google.com/rss/search?q=("private+equity"+OR+Blackstone+OR+KKR+OR+Apollo+OR+Carlyle)+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Sovereign Wealth', url: rss('https://news.google.com/rss/search?q=("sovereign+wealth+fund"+OR+"pension+fund"+OR+"institutional+investor")+when:7d&hl=en-US&gl=US&ceid=US:en') },
],
// GCC Business & Investment News
gccNews: [
{ name: 'Arabian Business', url: rss('https://news.google.com/rss/search?q=site:arabianbusiness.com+(Saudi+Arabia+OR+UAE+OR+GCC)+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'The National', url: rss('https://news.google.com/rss/search?q=site:thenationalnews.com+(Abu+Dhabi+OR+UAE+OR+Saudi)+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Arab News', url: rss('https://news.google.com/rss/search?q=site:arabnews.com+(Saudi+Arabia+OR+investment+OR+infrastructure)+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Gulf FDI', url: rss('https://news.google.com/rss/search?q=(PIF+OR+"DP+World"+OR+Mubadala+OR+ADNOC+OR+Masdar+OR+"ACWA+Power")+infrastructure+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Gulf Investments', url: rss('https://news.google.com/rss/search?q=("Saudi+Arabia"+OR+"UAE"+OR+"Abu+Dhabi")+investment+infrastructure+when:7d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Vision 2030', url: rss('https://news.google.com/rss/search?q="Vision+2030"+(project+OR+investment+OR+announced)+when:14d&hl=en-US&gl=US&ceid=US:en') },
],
// Market Analysis & Outlook
analysis: [
{ name: 'Market Outlook', url: rss('https://news.google.com/rss/search?q=("market+outlook"+OR+"stock+market+forecast"+OR+"bull+market"+OR+"bear+market")+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Risk & Volatility', url: rss('https://news.google.com/rss/search?q=(VIX+OR+"market+volatility"+OR+"risk+off"+OR+"market+correction")+when:3d&hl=en-US&gl=US&ceid=US:en') },
{ name: 'Bank Research', url: rss('https://news.google.com/rss/search?q=("Goldman+Sachs"+OR+"JPMorgan"+OR+"Morgan+Stanley")+forecast+OR+outlook+when:3d&hl=en-US&gl=US&ceid=US:en') },
],
};
// Panel configuration for finance/trading
export const DEFAULT_PANELS: Record<string, PanelConfig> = {
map: { name: 'Global Markets Map', enabled: true, priority: 1 },
'live-news': { name: 'Market Headlines', enabled: true, priority: 1 },
insights: { name: 'AI Market Insights', enabled: true, priority: 1 },
markets: { name: 'Live Markets', enabled: true, priority: 1 },
'stock-analysis': { name: 'Stock Analysis', enabled: true, priority: 1 },
'stock-backtest': { name: 'Backtesting', enabled: true, priority: 1 },
'daily-market-brief': { name: 'Daily Market Brief', enabled: true, priority: 1 },
'markets-news': { name: 'Markets News', enabled: true, priority: 2 },
forex: { name: 'Forex & Currencies', enabled: true, priority: 1 },
bonds: { name: 'Fixed Income', enabled: true, priority: 1 },
commodities: { name: 'Commodities & Futures', enabled: true, priority: 1 },
'commodities-news': { name: 'Commodities News', enabled: true, priority: 2 },
crypto: { name: 'Crypto & Digital Assets', enabled: true, priority: 1 },
'crypto-news': { name: 'Crypto News', enabled: true, priority: 2 },
centralbanks: { name: 'Central Bank Watch', enabled: true, priority: 1 },
economic: { name: 'Economic Data', enabled: true, priority: 1 },
'economic-news': { name: 'Economic News', enabled: true, priority: 2 },
ipo: { name: 'IPOs, Earnings & M&A', enabled: true, priority: 1 },
heatmap: { name: 'Sector Heatmap', enabled: true, priority: 1 },
'macro-signals': { name: 'Market Radar', enabled: true, priority: 1 },
'fear-greed': { name: 'Fear & Greed', enabled: true, priority: 1 },
'market-breadth': { name: 'Market Breadth', enabled: true, priority: 1 },
derivatives: { name: 'Derivatives & Options', enabled: true, priority: 2 },
fintech: { name: 'Fintech & Trading Tech', enabled: true, priority: 2 },
regulation: { name: 'Financial Regulation', enabled: true, priority: 2 },
institutional: { name: 'Hedge Funds & PE', enabled: true, priority: 2 },
analysis: { name: 'Market Analysis', enabled: true, priority: 2 },
'etf-flows': { name: 'BTC ETF Tracker', enabled: true, priority: 2 },
stablecoins: { name: 'Stablecoins', enabled: true, priority: 2 },
'gcc-investments': { name: 'GCC Investments', enabled: true, priority: 2 },
gccNews: { name: 'GCC Business News', enabled: true, priority: 2 },
polymarket: { name: 'Predictions', enabled: true, priority: 2 },
monitors: { name: 'My Monitors', enabled: true, priority: 2 },
};
// Finance-focused map layers
export const DEFAULT_MAP_LAYERS: MapLayers = {
gpsJamming: false,
satellites: false,
conflicts: false,
bases: false,
cables: true,
pipelines: true,
hotspots: false,
ais: false,
nuclear: false,
irradiators: false,
sanctions: true,
weather: true,
economic: true,
waterways: true,
outages: true,
cyberThreats: false,
datacenters: false,
protests: false,
flights: false,
military: false,
natural: true,
spaceports: false,
minerals: false,
fires: false,
ucdpEvents: false,
displacement: false,
climate: false,
// Tech layers (disabled in finance variant)
startupHubs: false,
cloudRegions: false,
accelerators: false,
techHQs: false,
techEvents: false,
// Finance-specific layers
stockExchanges: true,
financialCenters: true,
centralBanks: true,
commodityHubs: false,
gulfInvestments: false,
// Happy variant layers
positiveEvents: false,
kindness: false,
happiness: false,
speciesRecovery: false,
renewableInstallations: false,
tradeRoutes: true,
iranAttacks: false,
ciiChoropleth: false,
resilienceScore: false,
dayNight: false,
// Commodity variant layers (disabled in finance variant)
miningSites: false,
processingPlants: false,
commodityPorts: false,
webcams: false,
diseaseOutbreaks: false,
};
// Mobile defaults for finance variant
export const MOBILE_DEFAULT_MAP_LAYERS: MapLayers = {
gpsJamming: false,
satellites: false,
conflicts: false,
bases: false,
cables: false,
pipelines: false,
hotspots: false,
ais: false,
nuclear: false,
irradiators: false,
sanctions: false,
weather: false,
economic: true,
waterways: false,
outages: true,
cyberThreats: false,
datacenters: false,
protests: false,
flights: false,
military: false,
natural: true,
spaceports: false,
minerals: false,
fires: false,
ucdpEvents: false,
displacement: false,
climate: false,
// Tech layers (disabled)
startupHubs: false,
cloudRegions: false,
accelerators: false,
techHQs: false,
techEvents: false,
// Finance layers (limited on mobile)
stockExchanges: true,
financialCenters: false,
centralBanks: true,
commodityHubs: false,
gulfInvestments: false,
// Happy variant layers
positiveEvents: false,
kindness: false,
happiness: false,
speciesRecovery: false,
renewableInstallations: false,
tradeRoutes: false,
iranAttacks: false,
ciiChoropleth: false,
resilienceScore: false,
dayNight: false,
// Commodity variant layers (disabled in finance variant)
miningSites: false,
processingPlants: false,
commodityPorts: false,
webcams: false,
diseaseOutbreaks: false,
};
export const VARIANT_CONFIG: VariantConfig = {
name: 'finance',
description: 'Finance, markets & trading intelligence dashboard',
panels: DEFAULT_PANELS,
mapLayers: DEFAULT_MAP_LAYERS,
mobileMapLayers: MOBILE_DEFAULT_MAP_LAYERS,
};
|