Browse Source
Feature/extend get asset profile in financial modeling prep service (#4230)
* Extend get asset profile by ETF website
pull/4234/head^2
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
13 additions and
0 deletions
-
apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts
|
|
@ -124,6 +124,19 @@ export class FinancialModelingPrepService implements DataProviderInterface { |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
const [etfInformation] = await fetch( |
|
|
|
`${this.getUrl({ version: 4 })}/etf-info?symbol=${symbol}&apikey=${this.apiKey}`, |
|
|
|
{ |
|
|
|
signal: AbortSignal.timeout( |
|
|
|
this.configurationService.get('REQUEST_TIMEOUT') |
|
|
|
) |
|
|
|
} |
|
|
|
).then((res) => res.json()); |
|
|
|
|
|
|
|
if (etfInformation.website) { |
|
|
|
response.url = etfInformation.website; |
|
|
|
} |
|
|
|
|
|
|
|
const [portfolioDate] = await fetch( |
|
|
|
`${this.getUrl({ version: 4 })}/etf-holdings/portfolio-date?symbol=${symbol}&apikey=${this.apiKey}`, |
|
|
|
{ |
|
|
|