|
|
@ -1085,6 +1085,7 @@ export class PortfolioService { |
|
|
|
firstOrderDate: undefined, |
|
|
|
hasErrors: false, |
|
|
|
performance: { |
|
|
|
createdAt: undefined, |
|
|
|
currentNetWorth: 0, |
|
|
|
currentValueInBaseCurrency: 0, |
|
|
|
netPerformance: 0, |
|
|
@ -1105,7 +1106,7 @@ export class PortfolioService { |
|
|
|
currency: userCurrency |
|
|
|
}); |
|
|
|
|
|
|
|
const { errors, hasErrors, historicalData } = |
|
|
|
const { createdAt, errors, hasErrors, historicalData } = |
|
|
|
await portfolioCalculator.getSnapshot(); |
|
|
|
|
|
|
|
const { endDate, startDate } = getIntervalFromDateRange(dateRange); |
|
|
@ -1145,6 +1146,7 @@ export class PortfolioService { |
|
|
|
netPerformance, |
|
|
|
netPerformanceWithCurrencyEffect, |
|
|
|
totalInvestment, |
|
|
|
createdAt: createdAt, |
|
|
|
currentNetWorth: netWorth, |
|
|
|
currentValueInBaseCurrency: valueWithCurrencyEffect, |
|
|
|
netPerformancePercentage: netPerformanceInPercentage, |
|
|
@ -1699,7 +1701,7 @@ export class PortfolioService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const { currentValueInBaseCurrency, totalInvestment } = |
|
|
|
const { createdAt, currentValueInBaseCurrency, totalInvestment } = |
|
|
|
await portfolioCalculator.getSnapshot(); |
|
|
|
|
|
|
|
const { performance } = await this.getPerformance({ |
|
|
@ -1817,6 +1819,7 @@ export class PortfolioService { |
|
|
|
totalSell, |
|
|
|
committedFunds: committedFunds.toNumber(), |
|
|
|
currentValueInBaseCurrency: currentValueInBaseCurrency.toNumber(), |
|
|
|
createdAt: createdAt, |
|
|
|
dividendInBaseCurrency: dividendInBaseCurrency.toNumber(), |
|
|
|
emergencyFund: { |
|
|
|
assets: emergencyFundPositionsValueInBaseCurrency, |
|
|
|