Browse Source
			
			
			Feature/add validation of search results in eod historical data service (#2883)
			
				* Validate currency
* Update changelog
			
			
				pull/2886/head
			
			
		 
		
			
				
					
						
						Thomas Kaul
					
					2 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
4 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Added | 
					 | 
					 | 
					### Added | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Added the holdings table to the account detail dialog | 
					 | 
					 | 
					- Added the holdings table to the account detail dialog | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					- Validated the currency of the search results in the _EOD Historical Data_ service | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					## 2.40.0 - 2024-01-15 | 
					 | 
					 | 
					## 2.40.0 - 2024-01-15 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -277,8 +277,9 @@ export class EodHistoricalDataService implements DataProviderInterface { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    return { | 
					 | 
					 | 
					    return { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      items: searchResult | 
					 | 
					 | 
					      items: searchResult | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        .filter(({ symbol }) => { | 
					 | 
					 | 
					        .filter(({ currency, symbol }) => { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          return !symbol.endsWith('.FOREX'); | 
					 | 
					 | 
					          // Remove 'NA' currency and exchange rates
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          return currency?.length === 3 && !symbol.endsWith('.FOREX'); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        .map( | 
					 | 
					 | 
					        .map( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          ({ | 
					 | 
					 | 
					          ({ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |