|
|
@ -411,6 +411,13 @@ export class PortfolioService {
|
|
|
|
|
|
|
|
|
|
|
|
const transactionPoints = await this.getTransactionPoints(userId);
|
|
|
|
const transactionPoints = await this.getTransactionPoints(userId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (transactionPoints?.length <= 0) {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
hasErrors: false,
|
|
|
|
|
|
|
|
positions: []
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
portfolioCalculator.setTransactionPoints(transactionPoints);
|
|
|
|
portfolioCalculator.setTransactionPoints(transactionPoints);
|
|
|
|
|
|
|
|
|
|
|
|
const portfolioStart = parseDate(transactionPoints[0].date);
|
|
|
|
const portfolioStart = parseDate(transactionPoints[0].date);
|
|
|
|