Browse Source
			
			
			Feature/switch to adjusted market prices in get historical of eod historical data service (#3934)
			
				* Switch to adjusted market prices in getHistorical()
* Update changelog
			
			
				pull/3939/head
			
			
		 
		
			
				
					
						 Thomas Kaul
					
					1 year ago
						Thomas Kaul
					
					1 year ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
4 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
- 
					
					
					 
					apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | - Disabled the text hover effect in the chart of the holdings tab on the home page (experimental) | 
			
		
	
		
			
				
					|  |  |  | - Improved the usability to customize the rule thresholds in the _X-ray_ section by introducing units (experimental) | 
			
		
	
		
			
				
					|  |  |  | - Switched to adjusted market prices (splits and dividends) in the get historical functionality of the _EOD Historical Data_ service | 
			
		
	
		
			
				
					|  |  |  | - Improved the language localization for German (`de`) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ### Fixed | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -163,10 +163,10 @@ export class EodHistoricalDataService implements DataProviderInterface { | 
			
		
	
		
			
				
					|  |  |  |       ).json<any>(); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       return response.reduce( | 
			
		
	
		
			
				
					|  |  |  |         (result, { close, date }) => { | 
			
		
	
		
			
				
					|  |  |  |           if (isNumber(close)) { | 
			
		
	
		
			
				
					|  |  |  |         (result, { adjusted_close, date }) => { | 
			
		
	
		
			
				
					|  |  |  |           if (isNumber(adjusted_close)) { | 
			
		
	
		
			
				
					|  |  |  |             result[this.convertFromEodSymbol(symbol)][date] = { | 
			
		
	
		
			
				
					|  |  |  |               marketPrice: close | 
			
		
	
		
			
				
					|  |  |  |               marketPrice: adjusted_close | 
			
		
	
		
			
				
					|  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |           } else { | 
			
		
	
		
			
				
					|  |  |  |             Logger.error( | 
			
		
	
	
		
			
				
					|  |  | 
 |