Browse Source
Merge branch 'main' into bugfix/fix-unit-in-overview-of-home-page
pull/2626/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed the unit for the _Zen Mode_ in the overview tab of the home page |
|
|
|
- Fixed an issue to get quotes in the _Financial Modeling Prep_ service |
|
|
|
|
|
|
|
## 2.20.0 - 2023-11-08 |
|
|
|
|
|
|
|
|
|
@ -133,7 +133,7 @@ export class FinancialModelingPrepService implements DataProviderInterface { |
|
|
|
abortController.abort(); |
|
|
|
}, requestTimeout); |
|
|
|
|
|
|
|
const response = await got( |
|
|
|
const quotes = await got( |
|
|
|
`${this.URL}/quote/${symbols.join(',')}?apikey=${this.apiKey}`, |
|
|
|
{ |
|
|
|
// @ts-ignore
|
|
|
@ -141,7 +141,7 @@ export class FinancialModelingPrepService implements DataProviderInterface { |
|
|
|
} |
|
|
|
).json<any>(); |
|
|
|
|
|
|
|
for (const { price, symbol } of response) { |
|
|
|
for (const { price, symbol } of quotes) { |
|
|
|
response[symbol] = { |
|
|
|
currency: DEFAULT_CURRENCY, |
|
|
|
dataProviderInfo: this.getDataProviderInfo(), |
|
|
|