|
|
@ -34,7 +34,8 @@ export class PortfolioCalculatorFactory { |
|
|
calculationType, |
|
|
calculationType, |
|
|
currency, |
|
|
currency, |
|
|
filters = [], |
|
|
filters = [], |
|
|
userId |
|
|
userId, |
|
|
|
|
|
usePortfolioSnapshotCache = true |
|
|
}: { |
|
|
}: { |
|
|
accountBalanceItems?: HistoricalDataItem[]; |
|
|
accountBalanceItems?: HistoricalDataItem[]; |
|
|
activities: Activity[]; |
|
|
activities: Activity[]; |
|
|
@ -42,6 +43,7 @@ export class PortfolioCalculatorFactory { |
|
|
currency: string; |
|
|
currency: string; |
|
|
filters?: Filter[]; |
|
|
filters?: Filter[]; |
|
|
userId: string; |
|
|
userId: string; |
|
|
|
|
|
usePortfolioSnapshotCache?: boolean; |
|
|
}): PortfolioCalculator { |
|
|
}): PortfolioCalculator { |
|
|
switch (calculationType) { |
|
|
switch (calculationType) { |
|
|
case PerformanceCalculationType.MWR: |
|
|
case PerformanceCalculationType.MWR: |
|
|
@ -51,6 +53,7 @@ export class PortfolioCalculatorFactory { |
|
|
currency, |
|
|
currency, |
|
|
filters, |
|
|
filters, |
|
|
userId, |
|
|
userId, |
|
|
|
|
|
usePortfolioSnapshotCache, |
|
|
configurationService: this.configurationService, |
|
|
configurationService: this.configurationService, |
|
|
currentRateService: this.currentRateService, |
|
|
currentRateService: this.currentRateService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
@ -65,6 +68,7 @@ export class PortfolioCalculatorFactory { |
|
|
currency, |
|
|
currency, |
|
|
filters, |
|
|
filters, |
|
|
userId, |
|
|
userId, |
|
|
|
|
|
usePortfolioSnapshotCache, |
|
|
configurationService: this.configurationService, |
|
|
configurationService: this.configurationService, |
|
|
currentRateService: this.currentRateService, |
|
|
currentRateService: this.currentRateService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
@ -79,6 +83,7 @@ export class PortfolioCalculatorFactory { |
|
|
currency, |
|
|
currency, |
|
|
filters, |
|
|
filters, |
|
|
userId, |
|
|
userId, |
|
|
|
|
|
usePortfolioSnapshotCache, |
|
|
configurationService: this.configurationService, |
|
|
configurationService: this.configurationService, |
|
|
currentRateService: this.currentRateService, |
|
|
currentRateService: this.currentRateService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
@ -93,6 +98,7 @@ export class PortfolioCalculatorFactory { |
|
|
currency, |
|
|
currency, |
|
|
filters, |
|
|
filters, |
|
|
userId, |
|
|
userId, |
|
|
|
|
|
usePortfolioSnapshotCache, |
|
|
configurationService: this.configurationService, |
|
|
configurationService: this.configurationService, |
|
|
currentRateService: this.currentRateService, |
|
|
currentRateService: this.currentRateService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
exchangeRateDataService: this.exchangeRateDataService, |
|
|
|