Thomas Kaul
					
					4 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 3 changed files with 
5 additions and 
4 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/app/portfolio/portfolio-calculator-new.ts
				
 
			
				- 
					
					
					 
					package.json
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 
					 | 
					 | 
					The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 
					 | 
					 | 
					and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					## Unreleased | 
					 | 
					 | 
					## 1.128.0 - 19.03.2022 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Added | 
					 | 
					 | 
					### Added | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Fixed | 
					 | 
					 | 
					### Fixed | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Fixed an issue with the user currency of the public page | 
					 | 
					 | 
					- Fixed an issue with the user currency of the public page | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					- Fixed an issue of the performance calculation with recent activities in the new calculation engine | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					## 1.127.0 - 16.03.2022 | 
					 | 
					 | 
					## 1.127.0 - 16.03.2022 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -922,7 +922,7 @@ export class PortfolioCalculatorNew { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          : new Big(0) | 
					 | 
					 | 
					          : new Big(0) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        : // This formula has the issue that buying more units with a price
 | 
					 | 
					 | 
					        : // This formula has the issue that buying more units with a price
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          // lower than the average buying price results in a positive
 | 
					 | 
					 | 
					          // lower than the average buying price results in a positive
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          // performance even if the market pricse stays constant
 | 
					 | 
					 | 
					          // performance even if the market price stays constant
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          unitPriceAtEndDate | 
					 | 
					 | 
					          unitPriceAtEndDate | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            .div(averagePriceAtEndDate) | 
					 | 
					 | 
					            .div(averagePriceAtEndDate) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            .div( | 
					 | 
					 | 
					            .div( | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -944,7 +944,7 @@ export class PortfolioCalculatorNew { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          : new Big(0) | 
					 | 
					 | 
					          : new Big(0) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        : // This formula has the issue that buying more units with a price
 | 
					 | 
					 | 
					        : // This formula has the issue that buying more units with a price
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          // lower than the average buying price results in a positive
 | 
					 | 
					 | 
					          // lower than the average buying price results in a positive
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          // performance even if the market pricse stays constant
 | 
					 | 
					 | 
					          // performance even if the market price stays constant
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          unitPriceAtEndDate | 
					 | 
					 | 
					          unitPriceAtEndDate | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            .minus(feesPerUnit) | 
					 | 
					 | 
					            .minus(feesPerUnit) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            .div(averagePriceAtEndDate) | 
					 | 
					 | 
					            .div(averagePriceAtEndDate) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,6 +1,6 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{ | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  "name": "ghostfolio", | 
					 | 
					 | 
					  "name": "ghostfolio", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  "version": "1.127.0", | 
					 | 
					 | 
					  "version": "1.128.0", | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					  "homepage": "https://ghostfol.io", | 
					 | 
					 | 
					  "homepage": "https://ghostfol.io", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  "license": "AGPL-3.0", | 
					 | 
					 | 
					  "license": "AGPL-3.0", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  "scripts": { | 
					 | 
					 | 
					  "scripts": { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |