|
|
|
@ -438,6 +438,7 @@ export class FinancialModelingPrepService implements DataProviderInterface { |
|
|
|
} |
|
|
|
|
|
|
|
public async search({ |
|
|
|
includeIndices = false, |
|
|
|
query, |
|
|
|
requestTimeout = this.configurationService.get('REQUEST_TIMEOUT') |
|
|
|
}: GetSearchParams): Promise<LookupResponse> { |
|
|
|
@ -484,7 +485,15 @@ export class FinancialModelingPrepService implements DataProviderInterface { |
|
|
|
} |
|
|
|
).then((res) => res.json()); |
|
|
|
|
|
|
|
items = result.map(({ currency, name, symbol }) => { |
|
|
|
items = result |
|
|
|
.filter(({ symbol }) => { |
|
|
|
if (includeIndices === false && symbol.startsWith('^')) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
}) |
|
|
|
.map(({ currency, name, symbol }) => { |
|
|
|
return { |
|
|
|
currency, |
|
|
|
symbol, |
|
|
|
|