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:
2026-11-22 15:08:22 +01:00
parent 1123360914
commit d65222169a
50 changed files with 49897 additions and 193 deletions

View File

@ -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
}