Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
11 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-provider/data-provider.service.ts
-
package.json
|
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
## 1.47.0 - 06.09.2021 |
|
|
## 1.47.1 - 06.09.2021 |
|
|
|
|
|
|
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
@ -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); |
|
|
|
@ -1,6 +1,6 @@ |
|
|
{ |
|
|
{ |
|
|
"name": "ghostfolio", |
|
|
"name": "ghostfolio", |
|
|
"version": "1.47.0", |
|
|
"version": "1.47.1", |
|
|
"homepage": "https://ghostfol.io", |
|
|
"homepage": "https://ghostfol.io", |
|
|
"license": "AGPL-3.0", |
|
|
"license": "AGPL-3.0", |
|
|
"scripts": { |
|
|
"scripts": { |
|
|