Browse Source

Improve log message and JSDoc of search by ISIN

pull/8191/head
Thomas Kaul 2 days ago
parent
commit
3f58387b1c
  1. 7
      apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts

7
apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts

@ -542,7 +542,8 @@ export class FinancialModelingPrepService
* ISIN has no currency and no asset class, thus they are taken from the
* profile of the symbol only, without the further requests of an asset
* profile, for example the holdings of an ETF. A failed request of a profile
* gives a result without a currency and without an asset class.
* gives a result without a currency and without an asset class, which the
* caller removes unless indices are included.
*/
public async search({
includeIndices = false,
@ -581,7 +582,9 @@ export class FinancialModelingPrepService
};
})
.catch((error) => {
this.logger.error(error);
this.logger.error(
`Could not get the profile of ${symbol} (${this.getName()}): [${error?.name}] ${error?.message}`
);
});
})
);

Loading…
Cancel
Save