Browse Source
Task/ignore forex in search results of FMP service (#5951)
* Ignore forex in search
* Update changelog
pull/5954/head
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts
|
|
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Refactored the get holding functionality in the portfolio service |
|
|
|
- Changed the user data loading in the user detail dialog of the admin control panel’s users section to fetch data on demand |
|
|
|
- Exposed the authentication with access token as an environment variable (`ENABLE_FEATURE_AUTH_TOKEN`) |
|
|
|
- Improved the search functionality of the _Financial Modeling Prep_ service |
|
|
|
- Improved the language localization for German (`de`) |
|
|
|
- Upgraded `prisma` from version `6.18.0` to `6.19.0` |
|
|
|
|
|
|
|
|
|
|
|
@ -504,8 +504,11 @@ export class FinancialModelingPrepService implements DataProviderInterface { |
|
|
|
).then((res) => res.json()); |
|
|
|
|
|
|
|
items = result |
|
|
|
.filter(({ symbol }) => { |
|
|
|
if (includeIndices === false && symbol.startsWith('^')) { |
|
|
|
.filter(({ exchange, symbol }) => { |
|
|
|
if ( |
|
|
|
exchange === 'FOREX' || |
|
|
|
(includeIndices === false && symbol.startsWith('^')) |
|
|
|
) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
|