|  | @ -23,7 +23,13 @@ import { | 
			
		
	
		
		
			
				
					|  |  | } from '@ghostfolio/common/interfaces'; |  |  | } from '@ghostfolio/common/interfaces'; | 
			
		
	
		
		
			
				
					|  |  | import { MarketDataPreset } from '@ghostfolio/common/types'; |  |  | import { MarketDataPreset } from '@ghostfolio/common/types'; | 
			
		
	
		
		
			
				
					|  |  | import { BadRequestException, Injectable } from '@nestjs/common'; |  |  | import { BadRequestException, Injectable } from '@nestjs/common'; | 
			
		
	
		
		
			
				
					
					|  |  | import { AssetSubClass, Prisma, Property, SymbolProfile } from '@prisma/client'; |  |  | import { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |   AssetSubClass, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   DataSource, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   Prisma, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   Property, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   SymbolProfile | 
			
		
	
		
		
			
				
					|  |  |  |  |  | } from '@prisma/client'; | 
			
		
	
		
		
			
				
					|  |  | import { differenceInDays } from 'date-fns'; |  |  | import { differenceInDays } from 'date-fns'; | 
			
		
	
		
		
			
				
					|  |  | import { groupBy } from 'lodash'; |  |  | import { groupBy } from 'lodash'; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -94,9 +100,17 @@ export class AdminService { | 
			
		
	
		
		
			
				
					|  |  |           return currency !== DEFAULT_CURRENCY; |  |  |           return currency !== DEFAULT_CURRENCY; | 
			
		
	
		
		
			
				
					|  |  |         }) |  |  |         }) | 
			
		
	
		
		
			
				
					|  |  |         .map((currency) => { |  |  |         .map((currency) => { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           const label1 = DEFAULT_CURRENCY; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           const label2 = currency; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |           return { |  |  |           return { | 
			
		
	
		
		
			
				
					
					|  |  |             label1: DEFAULT_CURRENCY, |  |  |             label1, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             label2: currency, |  |  |             label2, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             dataSource: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |               DataSource[ | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 this.configurationService.get('DATA_SOURCE_EXCHANGE_RATES') | 
			
		
	
		
		
			
				
					|  |  |  |  |  |               ], | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             symbol: `${label1}${label2}`, | 
			
		
	
		
		
			
				
					|  |  |             value: this.exchangeRateDataService.toCurrency( |  |  |             value: this.exchangeRateDataService.toCurrency( | 
			
		
	
		
		
			
				
					|  |  |               1, |  |  |               1, | 
			
		
	
		
		
			
				
					|  |  |               DEFAULT_CURRENCY, |  |  |               DEFAULT_CURRENCY, | 
			
		
	
	
		
		
			
				
					|  | 
 |