feat: expose instrument brand logo name in portfolio positions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user