Browse Source

Refactoring

pull/1399/head
Thomas 3 years ago
parent
commit
82570af211
  1. 5
      apps/api/src/app/portfolio/portfolio-calculator.ts

5
apps/api/src/app/portfolio/portfolio-calculator.ts

@ -1273,6 +1273,7 @@ export class PortfolioCalculator {
Average price: ${averagePriceAtStartDate.toFixed(
2
)} -> ${averagePriceAtEndDate.toFixed(2)}
Total investment: ${totalInvestment.toFixed(2)}
Max. total investment: ${maxTotalInvestment.toFixed(2)}
Gross performance: ${totalGrossPerformance.toFixed(
2
@ -1280,9 +1281,7 @@ export class PortfolioCalculator {
Fees per unit: ${feesPerUnit.toFixed(2)}
Net performance: ${totalNetPerformance.toFixed(
2
)} / ${netPerformancePercentage.mul(100).toFixed(2)}%
Investment at end date: ${totalInvestment}
`
)} / ${netPerformancePercentage.mul(100).toFixed(2)}%`
);
}

Loading…
Cancel
Save