Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/numeric parsing error in X-ray page (#6198)
Thomas Kaul3359ea1d2027
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 779b249817..c7757c1c46 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Removed the deprecated platforms from the info service- Removed the deprecated activities from the endpoint `GET api/v1/portfolio/holding/:dataSource/:symbol`+### Fixed++- Fixed a numeric parsing error related to cash positions on the _X-ray_ page+## 2.230.0 - 2026-01-14### Addeddiff --git a/apps/api/src/app/portfolio/calculator/portfolio-calculator.ts b/apps/api/src/app/portfolio/calculator/portfolio-calculator.tsindex 8f6cb0efc3..dfc39afa52 100644--- a/apps/api/src/app/portfolio/calculator/portfolio-calculator.ts+++ b/apps/api/src/app/portfolio/calculator/portfolio-calculator.ts@@ -433,9 +433,8 @@ export abstract class PortfolioCalculator {investment: totalInvestment,investmentWithCurrencyEffect: totalInvestmentWithCurrencyEffect,marketPrice:- marketSymbolMap[endDateString]?.[item.symbol]?.toNumber() ?? null,- marketPriceInBaseCurrency:- marketPriceInBaseCurrency?.toNumber() ?? null,+ marketSymbolMap[endDateString]?.[item.symbol]?.toNumber() ?? 1,+ marketPriceInBaseCurrency: marketPriceInBaseCurrency?.toNumber() ?? 1,netPerformance: !hasErrors ? (netPerformance ?? null) : null,netPerformancePercentage: !hasErrors? (netPerformancePercentage ?? null)diff --git a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.tsindex f5a4ca6343..c9adebc448 100644--- a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts+++ b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-cash.spec.ts@@ -247,7 +247,7 @@ describe('PortfolioCalculator', () => {includeInTotalAssetValue: false,investment: new Big(1820),investmentWithCurrencyEffect: new Big(1750),- marketPrice: null,+ marketPrice: 1,marketPriceInBaseCurrency: 0.91,netPerformance: new Big(0),netPerformancePercentage: new Big(0),diff --git a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-valuable.spec.ts b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-valuable.spec.tsindex 3c7c3be4bd..1db1332881 100644--- a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-valuable.spec.ts+++ b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-valuable.spec.ts@@ -129,7 +129,7 @@ describe('PortfolioCalculator', () => {grossPerformanceWithCurrencyEffect: new Big('0'),investment: new Big('500000'),investmentWithCurrencyEffect: new Big('500000'),- marketPrice: null,+ marketPrice: 1,marketPriceInBaseCurrency: 500000,netPerformance: new Big('0'),netPerformancePercentage: new Big('0'),