Feature/add support for mutual funds in eod historical data service (#3970)
* Add support for mutual funds * Update changelog
This commit is contained in:
parent
2951fb37f9
commit
51b68e561f
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added support for mutual funds in the _EOD Historical Data_ service
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Optimized the dialog sizes for mobile (full screen)
|
- Optimized the dialog sizes for mobile (full screen)
|
||||||
|
@ -37,7 +37,10 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface {
|
|||||||
symbol: string;
|
symbol: string;
|
||||||
}): Promise<Partial<SymbolProfile>> {
|
}): Promise<Partial<SymbolProfile>> {
|
||||||
if (
|
if (
|
||||||
!(response.assetClass === 'EQUITY' && response.assetSubClass === 'ETF')
|
!(
|
||||||
|
response.assetClass === 'EQUITY' &&
|
||||||
|
['ETF', 'MUTUALFUND'].includes(response.assetSubClass)
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -500,6 +500,10 @@ export class EodHistoricalDataService implements DataProviderInterface {
|
|||||||
assetClass = AssetClass.EQUITY;
|
assetClass = AssetClass.EQUITY;
|
||||||
assetSubClass = AssetSubClass.ETF;
|
assetSubClass = AssetSubClass.ETF;
|
||||||
break;
|
break;
|
||||||
|
case 'fund':
|
||||||
|
assetClass = AssetClass.EQUITY;
|
||||||
|
assetSubClass = AssetSubClass.MUTUALFUND;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { assetClass, assetSubClass };
|
return { assetClass, assetSubClass };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user