Browse Source

Validate currency

pull/2883/head
Thomas Kaul 2 years ago
parent
commit
d61c8b3f7e
  1. 5
      apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts

5
apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts

@ -277,8 +277,9 @@ export class EodHistoricalDataService implements DataProviderInterface {
return {
items: searchResult
.filter(({ symbol }) => {
return !symbol.endsWith('.FOREX');
.filter(({ currency, symbol }) => {
// Remove 'NA' currency and exchange rates
return currency?.length === 3 && !symbol.endsWith('.FOREX');
})
.map(
({

Loading…
Cancel
Save