|
|
@ -73,10 +73,6 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { |
|
|
* DOGEUSD -> DOGE-USD |
|
|
* DOGEUSD -> DOGE-USD |
|
|
*/ |
|
|
*/ |
|
|
public convertToYahooFinanceSymbol(aSymbol: string) { |
|
|
public convertToYahooFinanceSymbol(aSymbol: string) { |
|
|
if ( |
|
|
|
|
|
aSymbol.includes(DEFAULT_CURRENCY) && |
|
|
|
|
|
aSymbol.length > DEFAULT_CURRENCY.length |
|
|
|
|
|
) { |
|
|
|
|
|
if (isCurrencySymbol(aSymbol)) { |
|
|
if (isCurrencySymbol(aSymbol)) { |
|
|
return `${aSymbol}=X`; |
|
|
return `${aSymbol}=X`; |
|
|
} else if ( |
|
|
} else if ( |
|
|
@ -93,7 +89,6 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { |
|
|
`-${DEFAULT_CURRENCY}` |
|
|
`-${DEFAULT_CURRENCY}` |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return aSymbol; |
|
|
return aSymbol; |
|
|
} |
|
|
} |
|
|
|