feat(watchlist): add company identity catalog
Embed a pinned FinanceDatabase equity snapshot, add authenticated company search and identity-based follows, preserve legacy assets, and map selected Yahoo symbols for collection. Refs #19 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -168,7 +168,11 @@ func (u *useCase) Generate(ctx context.Context, userID string) (Result, error) {
|
||||
if feed == nil {
|
||||
err = fmt.Errorf("unavailable")
|
||||
} else {
|
||||
articles, err = feed.Scrape(ctx, append([]string(nil), symbols...))
|
||||
sourceSymbols := symbols
|
||||
if *source.SourceKey == models.SourceYahooFinance {
|
||||
sourceSymbols = yahooSymbols(input.Assets)
|
||||
}
|
||||
articles, err = feed.Scrape(ctx, append([]string(nil), sourceSymbols...))
|
||||
}
|
||||
if err != nil {
|
||||
stat.Status = "failed"
|
||||
|
||||
Reference in New Issue
Block a user