|
@ -47,18 +47,19 @@ 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 |
|
|
return ( |
|
|
.filter((symbol) => { |
|
|
!isGhostfolioScraperApiSymbol(symbol) && |
|
|
return ( |
|
|
!isRakutenRapidApiSymbol(symbol) |
|
|
!isGhostfolioScraperApiSymbol(symbol) && |
|
|
); |
|
|
!isRakutenRapidApiSymbol(symbol) |
|
|
}); |
|
|
); |
|
|
|
|
|
}) |
|
|
|
|
|
.map((symbol) => { |
|
|
|
|
|
return convertToYahooFinanceSymbol(symbol); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
const response = await this.yahooFinanceService.get(yahooFinanceSymbols); |
|
|
const response = await this.yahooFinanceService.get(yahooFinanceSymbols); |
|
|
|
|
|
|
|
|