|
|
@ -392,19 +392,17 @@ export abstract class PortfolioCalculator { |
|
|
const includeInTotalAssetValue = |
|
|
const includeInTotalAssetValue = |
|
|
item.assetSubClass !== AssetSubClass.CASH; |
|
|
item.assetSubClass !== AssetSubClass.CASH; |
|
|
|
|
|
|
|
|
if (includeInTotalAssetValue) { |
|
|
valuesBySymbol[item.symbol] = { |
|
|
valuesBySymbol[item.symbol] = { |
|
|
currentValues, |
|
|
currentValues, |
|
|
currentValuesWithCurrencyEffect, |
|
|
currentValuesWithCurrencyEffect, |
|
|
investmentValuesAccumulated, |
|
|
investmentValuesAccumulated, |
|
|
investmentValuesAccumulatedWithCurrencyEffect, |
|
|
investmentValuesAccumulatedWithCurrencyEffect, |
|
|
investmentValuesWithCurrencyEffect, |
|
|
investmentValuesWithCurrencyEffect, |
|
|
netPerformanceValues, |
|
|
netPerformanceValues, |
|
|
netPerformanceValuesWithCurrencyEffect, |
|
|
netPerformanceValuesWithCurrencyEffect, |
|
|
timeWeightedInvestmentValues, |
|
|
timeWeightedInvestmentValues, |
|
|
timeWeightedInvestmentValuesWithCurrencyEffect |
|
|
timeWeightedInvestmentValuesWithCurrencyEffect |
|
|
}; |
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
positions.push({ |
|
|
positions.push({ |
|
|
includeInTotalAssetValue, |
|
|
includeInTotalAssetValue, |
|
|
@ -610,9 +608,7 @@ export abstract class PortfolioCalculator { |
|
|
netPerformance: totalNetPerformanceValue.toNumber(), |
|
|
netPerformance: totalNetPerformanceValue.toNumber(), |
|
|
netPerformanceWithCurrencyEffect: |
|
|
netPerformanceWithCurrencyEffect: |
|
|
totalNetPerformanceValueWithCurrencyEffect.toNumber(), |
|
|
totalNetPerformanceValueWithCurrencyEffect.toNumber(), |
|
|
netWorth: totalCurrentValueWithCurrencyEffect |
|
|
netWorth: totalCurrentValueWithCurrencyEffect.toNumber(), |
|
|
.plus(totalAccountBalanceWithCurrencyEffect) |
|
|
|
|
|
.toNumber(), |
|
|
|
|
|
totalAccountBalance: totalAccountBalanceWithCurrencyEffect.toNumber(), |
|
|
totalAccountBalance: totalAccountBalanceWithCurrencyEffect.toNumber(), |
|
|
totalInvestment: totalInvestmentValue.toNumber(), |
|
|
totalInvestment: totalInvestmentValue.toNumber(), |
|
|
totalInvestmentValueWithCurrencyEffect: |
|
|
totalInvestmentValueWithCurrencyEffect: |
|
|
|