Browse Source
Bugfix/fix exception in portfolio calculator (#4113)
* Fix exception in portfolio calculator
* Update changelog
pull/4114/head
Thomas Kaul
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts
-
libs/common/src/lib/models/portfolio-snapshot.ts
|
|
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
- Extended the _X-ray_ page by a summary |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed an exception in the caching of the portfolio snapshot in the portfolio calculator |
|
|
|
|
|
|
|
## 2.126.1 - 2024-12-07 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -101,6 +101,7 @@ export class TWRPortfolioCalculator extends PortfolioCalculator { |
|
|
|
totalInterestWithCurrencyEffect, |
|
|
|
totalInvestment, |
|
|
|
totalInvestmentWithCurrencyEffect, |
|
|
|
errors: [], |
|
|
|
historicalData: [], |
|
|
|
totalLiabilitiesWithCurrencyEffect: new Big(0), |
|
|
|
totalValuablesWithCurrencyEffect: new Big(0) |
|
|
|
|
|
@ -13,7 +13,7 @@ export class PortfolioSnapshot { |
|
|
|
@Type(() => Big) |
|
|
|
currentValueInBaseCurrency: Big; |
|
|
|
|
|
|
|
errors?: AssetProfileIdentifier[]; |
|
|
|
errors: AssetProfileIdentifier[]; |
|
|
|
|
|
|
|
hasErrors: boolean; |
|
|
|
|
|
|
|