Feature/add validation of search results in eod historical data service (#2883)
* Validate currency * Update changelog
This commit is contained in:
parent
1b2d2a9860
commit
693791d113
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Added the holdings table to the account detail dialog
|
- Added the holdings table to the account detail dialog
|
||||||
|
- Validated the currency of the search results in the _EOD Historical Data_ service
|
||||||
|
|
||||||
## 2.40.0 - 2024-01-15
|
## 2.40.0 - 2024-01-15
|
||||||
|
|
||||||
|
@ -277,8 +277,9 @@ export class EodHistoricalDataService implements DataProviderInterface {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
items: searchResult
|
items: searchResult
|
||||||
.filter(({ symbol }) => {
|
.filter(({ currency, symbol }) => {
|
||||||
return !symbol.endsWith('.FOREX');
|
// Remove 'NA' currency and exchange rates
|
||||||
|
return currency?.length === 3 && !symbol.endsWith('.FOREX');
|
||||||
})
|
})
|
||||||
.map(
|
.map(
|
||||||
({
|
({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user