Browse Source
Feature/add cash as asset sub class (#319)
* Add cash as asset sub class
* Update changelog
pull/321/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/portfolio/portfolio.service.ts
-
libs/common/src/lib/interfaces/portfolio-position.interface.ts
|
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Extended the sub classification of assets by cash |
|
|
|
- Upgraded `svgmap` from version `2.1.1` to `2.6.0` |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
@ -724,6 +724,7 @@ export class PortfolioService { |
|
|
|
allocationCurrent: cashValue.div(value).toNumber(), |
|
|
|
allocationInvestment: cashValue.div(investment).toNumber(), |
|
|
|
assetClass: AssetClass.CASH, |
|
|
|
assetSubClass: AssetClass.CASH, |
|
|
|
countries: [], |
|
|
|
currency: Currency.CHF, |
|
|
|
grossPerformance: 0, |
|
|
|
|
|
@ -8,7 +8,7 @@ export interface PortfolioPosition { |
|
|
|
allocationCurrent: number; |
|
|
|
allocationInvestment: number; |
|
|
|
assetClass?: AssetClass; |
|
|
|
assetSubClass?: AssetSubClass; |
|
|
|
assetSubClass?: AssetSubClass | 'CASH'; |
|
|
|
countries: Country[]; |
|
|
|
currency: Currency; |
|
|
|
exchange?: string; |
|
|
|