From 44429154d34f63bc96f247b3ee023b925ad5eb33 Mon Sep 17 00:00:00 2001 From: Ivan Skvortsov Date: Wed, 23 Oct 2024 15:07:05 +0200 Subject: [PATCH] Registered developed-markets rule in Portfolio service --- apps/api/src/app/portfolio/portfolio.service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 1835a2215..37fc583bd 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -7,6 +7,7 @@ import { UserService } from '@ghostfolio/api/app/user/user.service'; import { getFactor } from '@ghostfolio/api/helper/portfolio.helper'; import { AccountClusterRiskCurrentInvestment } from '@ghostfolio/api/models/rules/account-cluster-risk/current-investment'; import { AccountClusterRiskSingleAccount } from '@ghostfolio/api/models/rules/account-cluster-risk/single-account'; +import { AllocationClusterRiskDevelopedMarkets } from '@ghostfolio/api/models/rules/allocation-cluster-risk/developed-markets'; import { AllocationClusterRiskEmergingMarkets } from '@ghostfolio/api/models/rules/allocation-cluster-risk/emerging-markets'; import { CurrencyClusterRiskBaseCurrencyCurrentInvestment } from '@ghostfolio/api/models/rules/currency-cluster-risk/base-currency-current-investment'; import { CurrencyClusterRiskCurrentInvestment } from '@ghostfolio/api/models/rules/currency-cluster-risk/current-investment'; @@ -1194,6 +1195,11 @@ export class PortfolioService { this.exchangeRateDataService, summary.currentValueInBaseCurrency, markets.emergingMarkets.valueInBaseCurrency + ), + new AllocationClusterRiskDevelopedMarkets( + this.exchangeRateDataService, + summary.currentValueInBaseCurrency, + markets.developedMarkets.valueInBaseCurrency ) ], userSettings