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