Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/exclude valueInBaseCurrency of top holdings in public portfolio endpoint (#7155)

Thomas Kaul3f168bf1a7b5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4269d69d4d..199b0b3838 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- Fixed an issue in the public access for portfolio sharing that exposed absolute values of the top holdings of ETFs
- Fixed the time zone handling in the `api` test suite for deterministic execution in `UTC`
## 3.17.0 - 2026-06-26
diff --git a/apps/api/src/app/endpoints/public/public.controller.ts b/apps/api/src/app/endpoints/public/public.controller.ts
index 6e025936d6..d0e459f01d 100644
--- a/apps/api/src/app/endpoints/public/public.controller.ts
+++ b/apps/api/src/app/endpoints/public/public.controller.ts
@@ -201,6 +201,11 @@ export class PublicController {
portfolioPosition.assetProfile.assetSubClass === AssetSubClass.CASH
? portfolioPosition.assetProfile.assetSubClassLabel
: undefined,
+ holdings: portfolioPosition.assetProfile.holdings?.map(
+ ({ allocationInPercentage, name }) => {
+ return { allocationInPercentage, name };
+ }
+ ),
...(hasDetails
? {}
: {