feat: expose instrument brand logo name in portfolio positions

This commit is contained in:
2026-08-24 23:41:48 +03:00
parent 2772d53647
commit 5375e5598a
4 changed files with 21 additions and 3 deletions
+8 -1
View File
@@ -44,7 +44,12 @@ const types: Record<string, string> = {
type CachedSnapshot = { snapshot: PortfolioDto; storedAt: number };
type CachedMetadata = {
value: { ticker?: string; name?: string; isin?: string } | null;
value: {
ticker?: string;
name?: string;
isin?: string;
brand?: { logoName?: string | null };
} | null;
storedAt: number;
};
@@ -210,6 +215,7 @@ export class PortfolioService {
averagePurchasePrice,
absoluteReturn,
isin: metadata?.isin?.trim() || null,
logoName: metadata?.brand?.logoName?.trim() || null,
};
}
@@ -241,6 +247,7 @@ export class PortfolioService {
ticker?: string;
name?: string;
isin?: string;
brand?: { logoName?: string | null };
} | null>,
) => {
const cached = this.metadata.get(key);