work on clean up and switched all to use eodSearchCode

This commit is contained in:
Boki 2025-07-13 13:42:22 -04:00
parent d68268b722
commit e341cc0226
19 changed files with 206 additions and 127 deletions

View file

@ -162,22 +162,22 @@ export function PortfolioTable() {
sharpe: Math.random() * 3,
alpha: (Math.random() - 0.5) * 20,
correlation: (Math.random() - 0.5) * 2,
sector: sectors[Math.floor(Math.random() * sectors.length)],
industry: industries[Math.floor(Math.random() * industries.length)],
country: countries[Math.floor(Math.random() * countries.length)],
exchange: exchanges[Math.floor(Math.random() * exchanges.length)],
currency: currencies[Math.floor(Math.random() * currencies.length)],
sector: sectors[Math.floor(Math.random() * sectors.length)] || 'Technology',
industry: industries[Math.floor(Math.random() * industries.length)] || 'Software',
country: countries[Math.floor(Math.random() * countries.length)] || 'USA',
exchange: exchanges[Math.floor(Math.random() * exchanges.length)] || 'NYSE',
currency: currencies[Math.floor(Math.random() * currencies.length)] || 'USD',
lastUpdate: new Date(Date.now() - Math.random() * 86400000).toISOString(),
analyst1: analysts[Math.floor(Math.random() * analysts.length)],
analyst2: analysts[Math.floor(Math.random() * analysts.length)],
analyst3: analysts[Math.floor(Math.random() * analysts.length)],
analyst1: analysts[Math.floor(Math.random() * analysts.length)] || 'Goldman Sachs',
analyst2: analysts[Math.floor(Math.random() * analysts.length)] || 'Morgan Stanley',
analyst3: analysts[Math.floor(Math.random() * analysts.length)] || 'JPMorgan',
rating1: Math.random() * 5 + 1,
rating2: Math.random() * 5 + 1,
rating3: Math.random() * 5 + 1,
target1: basePrice + (Math.random() - 0.3) * 50,
target2: basePrice + (Math.random() - 0.3) * 50,
target3: basePrice + (Math.random() - 0.3) * 50,
risk: risks[Math.floor(Math.random() * risks.length)],
risk: risks[Math.floor(Math.random() * risks.length)] || 'Medium',
esg: Math.random() * 100,
};
});