|
|
@ -1,7 +1,11 @@ |
|
|
|
import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; |
|
|
|
import { CryptocurrencyService } from '@ghostfolio/api/services/cryptocurrency/cryptocurrency.service'; |
|
|
|
import { DataEnhancerInterface } from '@ghostfolio/api/services/data-provider/interfaces/data-enhancer.interface'; |
|
|
|
import { DEFAULT_CURRENCY, UNKNOWN_KEY } from '@ghostfolio/common/config'; |
|
|
|
import { |
|
|
|
DEFAULT_CURRENCY, |
|
|
|
REPLACE_NAME_PARTS, |
|
|
|
UNKNOWN_KEY |
|
|
|
} from '@ghostfolio/common/config'; |
|
|
|
import { isCurrency } from '@ghostfolio/common/helper'; |
|
|
|
import { Injectable, Logger } from '@nestjs/common'; |
|
|
|
import { |
|
|
@ -137,18 +141,11 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { |
|
|
|
if (name) { |
|
|
|
name = name.replace('&', '&'); |
|
|
|
|
|
|
|
name = name.replace('Amundi Index Solutions - ', ''); |
|
|
|
name = name.replace('iShares ETF (CH) - ', ''); |
|
|
|
name = name.replace('iShares III Public Limited Company - ', ''); |
|
|
|
name = name.replace('iShares V PLC - ', ''); |
|
|
|
name = name.replace('iShares VI Public Limited Company - ', ''); |
|
|
|
name = name.replace('iShares VII PLC - ', ''); |
|
|
|
name = name.replace('Multi Units Luxembourg - ', ''); |
|
|
|
name = name.replace('VanEck ETFs N.V. - ', ''); |
|
|
|
name = name.replace('Vaneck Vectors Ucits Etfs Plc - ', ''); |
|
|
|
name = name.replace('Vanguard Funds Public Limited Company - ', ''); |
|
|
|
name = name.replace('Vanguard Index Funds - ', ''); |
|
|
|
name = name.replace('Xtrackers (IE) Plc - ', ''); |
|
|
|
for (const part of REPLACE_NAME_PARTS) { |
|
|
|
name = name.replace(part, ''); |
|
|
|
} |
|
|
|
|
|
|
|
name = name.trim(); |
|
|
|
} |
|
|
|
|
|
|
|
if (quoteType === 'FUTURE') { |
|
|
|