Browse Source

Feature/add support for mutual funds in eod historical data service (#3970)

* Add support for mutual funds

* Update changelog
pull/3949/head
Thomas Kaul 3 months ago
committed by GitHub
parent
commit
51b68e561f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 5
      apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts
  3. 4
      apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts

4
CHANGELOG.md

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Added
- Added support for mutual funds in the _EOD Historical Data_ service
### Changed
- Optimized the dialog sizes for mobile (full screen)

5
apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts

@ -37,7 +37,10 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface {
symbol: string;
}): Promise<Partial<SymbolProfile>> {
if (
!(response.assetClass === 'EQUITY' && response.assetSubClass === 'ETF')
!(
response.assetClass === 'EQUITY' &&
['ETF', 'MUTUALFUND'].includes(response.assetSubClass)
)
) {
return response;
}

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

@ -500,6 +500,10 @@ export class EodHistoricalDataService implements DataProviderInterface {
assetClass = AssetClass.EQUITY;
assetSubClass = AssetSubClass.ETF;
break;
case 'fund':
assetClass = AssetClass.EQUITY;
assetSubClass = AssetSubClass.MUTUALFUND;
break;
}
return { assetClass, assetSubClass };

Loading…
Cancel
Save