Browse Source
			
			
			Bugfix/fix exception with market state (#602)
			
				* Fix exception with market state
* Update changelog
			
			
				pull/603/head
			
			
		 
		
			
				
					
						
						Thomas Kaul
					
					4 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
7 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/app/portfolio/portfolio.service.ts
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Upgraded `chart.js` from version `3.5.0` to `3.7.0` | 
					 | 
					 | 
					- Upgraded `chart.js` from version `3.5.0` to `3.7.0` | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Upgraded `Nx` from version `13.3.0` to `13.4.1` | 
					 | 
					 | 
					- Upgraded `Nx` from version `13.3.0` to `13.4.1` | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					### Fixed | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					- Fixed an exception with the market state caused by a failed data provider request | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					## 1.98.0 - 29.12.2021 | 
					 | 
					 | 
					## 1.98.0 - 29.12.2021 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Added | 
					 | 
					 | 
					### Added | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -662,7 +662,9 @@ export class PortfolioService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          grossPerformancePercentage: | 
					 | 
					 | 
					          grossPerformancePercentage: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            position.grossPerformancePercentage?.toNumber() ?? null, | 
					 | 
					 | 
					            position.grossPerformancePercentage?.toNumber() ?? null, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          investment: new Big(position.investment).toNumber(), | 
					 | 
					 | 
					          investment: new Big(position.investment).toNumber(), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          marketState: dataProviderResponses[position.symbol].marketState, | 
					 | 
					 | 
					          marketState: | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            dataProviderResponses[position.symbol]?.marketState ?? | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            MarketState.delayed, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          name: symbolProfileMap[position.symbol].name, | 
					 | 
					 | 
					          name: symbolProfileMap[position.symbol].name, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          netPerformance: position.netPerformance?.toNumber() ?? null, | 
					 | 
					 | 
					          netPerformance: position.netPerformance?.toNumber() ?? null, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          netPerformancePercentage: | 
					 | 
					 | 
					          netPerformancePercentage: | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |