Browse Source

Return accumulated averages

pull/5027/head
Daniel Devaud 1 year ago
parent
commit
67302f8959
  1. 4
      apps/api/src/app/portfolio/portfolio-calculator.ts

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

@ -415,7 +415,7 @@ export class PortfolioCalculator {
);
}
this.accumulatedValuesByDate(
accumulatedValuesByDate = this.accumulatedValuesByDate(
valuesBySymbol,
symbol,
dateString,
@ -566,6 +566,8 @@ export class PortfolioCalculator {
?.totalTimeWeightedInvestmentValueWithCurrencyEffect ?? new Big(0)
).add(timeWeightedInvestmentValueWithCurrencyEffect)
};
return accumulatedValuesByDate;
}
private populateSymbolMetrics(

Loading…
Cancel
Save