|
|
@ -133,7 +133,7 @@ export class FinancialModelingPrepService implements DataProviderInterface {
|
|
|
|
abortController.abort();
|
|
|
|
abortController.abort();
|
|
|
|
}, requestTimeout);
|
|
|
|
}, requestTimeout);
|
|
|
|
|
|
|
|
|
|
|
|
const response = await got(
|
|
|
|
const quotes = await got(
|
|
|
|
`${this.URL}/quote/${symbols.join(',')}?apikey=${this.apiKey}`,
|
|
|
|
`${this.URL}/quote/${symbols.join(',')}?apikey=${this.apiKey}`,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
@ -141,7 +141,7 @@ export class FinancialModelingPrepService implements DataProviderInterface {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
).json<any>();
|
|
|
|
).json<any>();
|
|
|
|
|
|
|
|
|
|
|
|
for (const { price, symbol } of response) {
|
|
|
|
for (const { price, symbol } of quotes) {
|
|
|
|
response[symbol] = {
|
|
|
|
response[symbol] = {
|
|
|
|
currency: DEFAULT_CURRENCY,
|
|
|
|
currency: DEFAULT_CURRENCY,
|
|
|
|
dataProviderInfo: this.getDataProviderInfo(),
|
|
|
|
dataProviderInfo: this.getDataProviderInfo(),
|
|
|
|