|
|
@ -576,19 +576,15 @@ describe('PortfolioCalculator', () => {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
VTI: {
|
|
|
|
VTI: {
|
|
|
|
averagePrice: new Big('178.438'),
|
|
|
|
averagePrice: new Big('178.438'),
|
|
|
|
|
|
|
|
currency: 'USD',
|
|
|
|
firstBuyDate: '2019-02-01',
|
|
|
|
firstBuyDate: '2019-02-01',
|
|
|
|
quantity: new Big('25'),
|
|
|
|
|
|
|
|
symbol: 'VTI',
|
|
|
|
|
|
|
|
investment: new Big('4460.95'),
|
|
|
|
|
|
|
|
marketPrice: 213.32,
|
|
|
|
|
|
|
|
transactionCount: 5,
|
|
|
|
|
|
|
|
grossPerformance: new Big('872.05'), // 213.32*25-4460.95
|
|
|
|
grossPerformance: new Big('872.05'), // 213.32*25-4460.95
|
|
|
|
grossPerformancePercentage: new Big('0.19548526659119694236'), // 872.05/4460.95
|
|
|
|
grossPerformancePercentage: new Big('0.19548526659119694236'), // 872.05/4460.95
|
|
|
|
marketState: 'open',
|
|
|
|
investment: new Big('4460.95'),
|
|
|
|
name: '',
|
|
|
|
marketPrice: 213.32,
|
|
|
|
type: 'UNKNOWN',
|
|
|
|
quantity: new Big('25'),
|
|
|
|
url: '',
|
|
|
|
symbol: 'VTI',
|
|
|
|
currency: 'USD'
|
|
|
|
transactionCount: 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|