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:
@ -102,6 +102,12 @@ func (r *LayaHTTPRanker) Rank(ctx context.Context, mode string, assets []models.
|
||||
indices := make([]map[string]string, 0, len(assets))
|
||||
for _, a := range assets {
|
||||
index := map[string]string{"name": a.Name, "symbol": a.Symbol}
|
||||
if a.CompanyID != nil {
|
||||
index["company_id"] = *a.CompanyID
|
||||
}
|
||||
if a.YahooSymbol != nil {
|
||||
index["yahoo_symbol"] = *a.YahooSymbol
|
||||
}
|
||||
if a.FIGI != nil {
|
||||
index["figi"] = *a.FIGI
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user