|
@ -573,7 +573,6 @@ export class PortfolioService { |
|
|
if (withSummary) { |
|
|
if (withSummary) { |
|
|
summary = await this.getSummary({ |
|
|
summary = await this.getSummary({ |
|
|
filteredValueInBaseCurrency, |
|
|
filteredValueInBaseCurrency, |
|
|
holdings, |
|
|
|
|
|
impersonationId, |
|
|
impersonationId, |
|
|
portfolioCalculator, |
|
|
portfolioCalculator, |
|
|
userCurrency, |
|
|
userCurrency, |
|
@ -1110,10 +1109,6 @@ export class PortfolioService { |
|
|
performance: { |
|
|
performance: { |
|
|
currentNetWorth: 0, |
|
|
currentNetWorth: 0, |
|
|
currentValueInBaseCurrency: 0, |
|
|
currentValueInBaseCurrency: 0, |
|
|
grossPerformance: 0, |
|
|
|
|
|
grossPerformancePercentage: 0, |
|
|
|
|
|
grossPerformancePercentageWithCurrencyEffect: 0, |
|
|
|
|
|
grossPerformanceWithCurrencyEffect: 0, |
|
|
|
|
|
netPerformance: 0, |
|
|
netPerformance: 0, |
|
|
netPerformancePercentage: 0, |
|
|
netPerformancePercentage: 0, |
|
|
netPerformancePercentageWithCurrencyEffect: 0, |
|
|
netPerformancePercentageWithCurrencyEffect: 0, |
|
@ -1145,7 +1140,6 @@ export class PortfolioService { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const { |
|
|
const { |
|
|
grossPerformancePercent, |
|
|
|
|
|
netPerformance, |
|
|
netPerformance, |
|
|
netPerformanceInPercentage, |
|
|
netPerformanceInPercentage, |
|
|
netPerformanceInPercentageWithCurrencyEffect, |
|
|
netPerformanceInPercentageWithCurrencyEffect, |
|
@ -1157,7 +1151,6 @@ export class PortfolioService { |
|
|
chart?.length > 0 |
|
|
chart?.length > 0 |
|
|
? last(chart) |
|
|
? last(chart) |
|
|
: { |
|
|
: { |
|
|
grossPerformancePercent: 0, |
|
|
|
|
|
netPerformance: 0, |
|
|
netPerformance: 0, |
|
|
netPerformanceInPercentage: 0, |
|
|
netPerformanceInPercentage: 0, |
|
|
netPerformanceInPercentageWithCurrencyEffect: 0, |
|
|
netPerformanceInPercentageWithCurrencyEffect: 0, |
|
@ -1178,13 +1171,7 @@ export class PortfolioService { |
|
|
totalInvestment, |
|
|
totalInvestment, |
|
|
currentNetWorth: netWorth, |
|
|
currentNetWorth: netWorth, |
|
|
currentValueInBaseCurrency: valueWithCurrencyEffect, |
|
|
currentValueInBaseCurrency: valueWithCurrencyEffect, |
|
|
// TODO
|
|
|
netPerformancePercentage: netPerformanceInPercentage / 100 / 100, |
|
|
grossPerformance: 0, |
|
|
|
|
|
grossPerformancePercentage: grossPerformancePercent / 100, |
|
|
|
|
|
grossPerformancePercentageWithCurrencyEffect: 0 / 100, |
|
|
|
|
|
// TODO
|
|
|
|
|
|
grossPerformanceWithCurrencyEffect: 0, |
|
|
|
|
|
netPerformancePercentage: netPerformanceInPercentage / 100, |
|
|
|
|
|
netPerformancePercentageWithCurrencyEffect: |
|
|
netPerformancePercentageWithCurrencyEffect: |
|
|
netPerformanceInPercentageWithCurrencyEffect / 100 |
|
|
netPerformanceInPercentageWithCurrencyEffect / 100 |
|
|
} |
|
|
} |
|
@ -1582,7 +1569,6 @@ export class PortfolioService { |
|
|
balanceInBaseCurrency, |
|
|
balanceInBaseCurrency, |
|
|
emergencyFundPositionsValueInBaseCurrency, |
|
|
emergencyFundPositionsValueInBaseCurrency, |
|
|
filteredValueInBaseCurrency, |
|
|
filteredValueInBaseCurrency, |
|
|
holdings, |
|
|
|
|
|
impersonationId, |
|
|
impersonationId, |
|
|
portfolioCalculator, |
|
|
portfolioCalculator, |
|
|
userCurrency, |
|
|
userCurrency, |
|
@ -1591,7 +1577,6 @@ export class PortfolioService { |
|
|
balanceInBaseCurrency: number; |
|
|
balanceInBaseCurrency: number; |
|
|
emergencyFundPositionsValueInBaseCurrency: number; |
|
|
emergencyFundPositionsValueInBaseCurrency: number; |
|
|
filteredValueInBaseCurrency: Big; |
|
|
filteredValueInBaseCurrency: Big; |
|
|
holdings: PortfolioDetails['holdings']; |
|
|
|
|
|
impersonationId: string; |
|
|
impersonationId: string; |
|
|
portfolioCalculator: PortfolioCalculator; |
|
|
portfolioCalculator: PortfolioCalculator; |
|
|
userCurrency: string; |
|
|
userCurrency: string; |
|
|