|
@ -947,6 +947,7 @@ export class PortfolioService { |
|
|
const user = await this.userService.user({ id: userId }); |
|
|
const user = await this.userService.user({ id: userId }); |
|
|
|
|
|
|
|
|
const { endDate, startDate } = getInterval(dateRange); |
|
|
const { endDate, startDate } = getInterval(dateRange); |
|
|
|
|
|
|
|
|
const { activities } = await this.orderService.getOrders({ |
|
|
const { activities } = await this.orderService.getOrders({ |
|
|
endDate, |
|
|
endDate, |
|
|
filters, |
|
|
filters, |
|
@ -1121,6 +1122,7 @@ export class PortfolioService { |
|
|
const { endDate, startDate } = getInterval(dateRange); |
|
|
const { endDate, startDate } = getInterval(dateRange); |
|
|
|
|
|
|
|
|
const { activities } = await this.orderService.getOrders({ |
|
|
const { activities } = await this.orderService.getOrders({ |
|
|
|
|
|
endDate, |
|
|
filters, |
|
|
filters, |
|
|
userCurrency, |
|
|
userCurrency, |
|
|
userId, |
|
|
userId, |
|
@ -1769,8 +1771,8 @@ export class PortfolioService { |
|
|
|
|
|
|
|
|
const annualizedPerformancePercent = this.calculatorFactory |
|
|
const annualizedPerformancePercent = this.calculatorFactory |
|
|
.createCalculator({ |
|
|
.createCalculator({ |
|
|
calculationType: PerformanceCalculationType.TWR, |
|
|
|
|
|
activities: [], |
|
|
activities: [], |
|
|
|
|
|
calculationType: PerformanceCalculationType.TWR, |
|
|
currency: userCurrency |
|
|
currency: userCurrency |
|
|
}) |
|
|
}) |
|
|
.getAnnualizedPerformancePercent({ |
|
|
.getAnnualizedPerformancePercent({ |
|
@ -1784,8 +1786,8 @@ export class PortfolioService { |
|
|
const annualizedPerformancePercentWithCurrencyEffect = |
|
|
const annualizedPerformancePercentWithCurrencyEffect = |
|
|
this.calculatorFactory |
|
|
this.calculatorFactory |
|
|
.createCalculator({ |
|
|
.createCalculator({ |
|
|
calculationType: PerformanceCalculationType.TWR, |
|
|
|
|
|
activities: [], |
|
|
activities: [], |
|
|
|
|
|
calculationType: PerformanceCalculationType.TWR, |
|
|
currency: userCurrency |
|
|
currency: userCurrency |
|
|
}) |
|
|
}) |
|
|
.getAnnualizedPerformancePercent({ |
|
|
.getAnnualizedPerformancePercent({ |
|
|