Browse Source

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

* Exclude valueInBaseCurrency

* Update changelog
pull/7157/head^2
Thomas Kaul 2 days ago
committed by GitHub
parent
commit
3f168bf1a7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 5
      apps/api/src/app/endpoints/public/public.controller.ts

1
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

5
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
? {}
: {

Loading…
Cancel
Save