|
@ -346,6 +346,22 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { |
|
|
name: position.name |
|
|
name: position.name |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (position.tags.length > 0) { |
|
|
|
|
|
for (const tag of position.tags) { |
|
|
|
|
|
const { name } = tag; |
|
|
|
|
|
|
|
|
|
|
|
if (this.tagHoldingsMap[name]?.value) { |
|
|
|
|
|
this.tagHoldingsMap[name].value += |
|
|
|
|
|
position.valueInBaseCurrency ?? 0; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.tagHoldingsMap[name] = { |
|
|
|
|
|
name, |
|
|
|
|
|
value: position.valueInBaseCurrency ?? 0 |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (position.assetClass !== AssetClass.LIQUIDITY) { |
|
|
if (position.assetClass !== AssetClass.LIQUIDITY) { |
|
|
// Prepare analysis data by continents, countries, holdings and sectors except for liquidity
|
|
|
// Prepare analysis data by continents, countries, holdings and sectors except for liquidity
|
|
|
|
|
|
|
|
@ -423,22 +439,6 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (position.tags.length > 0) { |
|
|
|
|
|
for (const tag of position.tags) { |
|
|
|
|
|
const { name } = tag; |
|
|
|
|
|
|
|
|
|
|
|
if (this.tagHoldingsMap[name]?.value) { |
|
|
|
|
|
this.tagHoldingsMap[name].value += |
|
|
|
|
|
position.valueInBaseCurrency ?? 0; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.tagHoldingsMap[name] = { |
|
|
|
|
|
name, |
|
|
|
|
|
value: position.valueInBaseCurrency ?? 0 |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (position.sectors.length > 0) { |
|
|
if (position.sectors.length > 0) { |
|
|
for (const sector of position.sectors) { |
|
|
for (const sector of position.sectors) { |
|
|
const { name, weight } = sector; |
|
|
const { name, weight } = sector; |
|
|