@ -185,7 +185,8 @@ export abstract class PortfolioCalculator {
totalInvestment: new Big(0),
totalInvestmentWithCurrencyEffect: new Big(0),
totalLiabilitiesWithCurrencyEffect: new Big(0),
totalValuablesWithCurrencyEffect: new Big(0)
totalValuablesWithCurrencyEffect: new Big(0),
activitiesCount: 0
};
}
@ -104,7 +104,8 @@ export class TWRPortfolioCalculator extends PortfolioCalculator {
errors: [],
historicalData: [],
activitiesCount: this.activities.length
@ -45,4 +45,6 @@ export class PortfolioSnapshot {
@Transform(transformToBig, { toClassOnly: true })
@Type(() => Big)
totalValuablesWithCurrencyEffect: Big;
activitiesCount: number;