phase-7_alpha: legacy code cleanup

This commit is contained in:
Sai Kiran Vella
2026-06-05 22:27:53 -04:00
committed by saikiranvella
parent 357b0c0f6e
commit 93aac355cc
13 changed files with 31 additions and 983 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ export class FinanceController {
constructor(
private readonly engine: ScreenerEngine,
private readonly repo: PortfolioRepository,
private readonly advisor: PortfolioAdvisor,
) {}
private static normalizeYahoo(ticker: string): string {
@@ -44,7 +45,7 @@ export class FinanceController {
? await this.engine.screenTickers(screenable)
: { STOCK: [], ETF: [], BOND: [], ERROR: [], marketContext: {} as any };
const advice = await new PortfolioAdvisor().advise(holdings, results);
const advice = await this.advisor.advise(holdings, results);
return { advice, personalFinance, marketContext: results.marketContext };
}