Feature/extend get asset profile in financial modeling prep service (#4230)
* Extend get asset profile by ETF website
This commit is contained in:
parent
59f0307dcf
commit
cca26040bf
@ -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(
|
const [portfolioDate] = await fetch(
|
||||||
`${this.getUrl({ version: 4 })}/etf-holdings/portfolio-date?symbol=${symbol}&apikey=${this.apiKey}`,
|
`${this.getUrl({ version: 4 })}/etf-holdings/portfolio-date?symbol=${symbol}&apikey=${this.apiKey}`,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user