|
|
|
@ -47,17 +47,18 @@ export class DataProviderService {
|
|
|
|
|
return this.ghostfolioScraperApiService.get(aSymbols);
|
|
|
|
|
} else if (isRakutenRapidApiSymbol(symbol)) {
|
|
|
|
|
return this.rakutenRapidApiService.get(aSymbols);
|
|
|
|
|
} else {
|
|
|
|
|
const yahooFinanceSymbol = convertToYahooFinanceSymbol(symbol);
|
|
|
|
|
return this.yahooFinanceService.get([yahooFinanceSymbol]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const yahooFinanceSymbols = aSymbols.filter((symbol) => {
|
|
|
|
|
const yahooFinanceSymbols = aSymbols
|
|
|
|
|
.filter((symbol) => {
|
|
|
|
|
return (
|
|
|
|
|
!isGhostfolioScraperApiSymbol(symbol) &&
|
|
|
|
|
!isRakutenRapidApiSymbol(symbol)
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
.map((symbol) => {
|
|
|
|
|
return convertToYahooFinanceSymbol(symbol);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const response = await this.yahooFinanceService.get(yahooFinanceSymbols);
|
|
|
|
|