Browse Source
Task/skip Supranational in country weightings of FMP service (#8474)
Skip Supranational in country weightings
pull/8461/merge
Thomas Kaul
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts
|
|
@ -174,6 +174,9 @@ export class FinancialModelingPrepService |
|
|
.then((res) => res.json()); |
|
|
.then((res) => res.json()); |
|
|
|
|
|
|
|
|
response.countries = etfCountryWeightings |
|
|
response.countries = etfCountryWeightings |
|
|
|
|
|
.filter(({ country: countryName }) => { |
|
|
|
|
|
return countryName?.toLowerCase() !== 'supranational'; |
|
|
|
|
|
}) |
|
|
.map(({ country: countryName, weightPercentage }) => { |
|
|
.map(({ country: countryName, weightPercentage }) => { |
|
|
return { |
|
|
return { |
|
|
code: getCountryCodeByName({ |
|
|
code: getCountryCodeByName({ |
|
|
|