Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/extend trackinsight data enhancer by cusip (#4362)

Thomas Kaul168a67953599
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13f33d4854..f3076d9724 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+### Added
+
+- Extended the _Trackinsight_ data enhancer for asset profile data by `cusip`
+
## 2.141.0 - 2025-02-25
### Added
diff --git a/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts b/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts
index 2b8eaf2e91..32b494085e 100644
--- a/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts
+++ b/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts
@@ -71,7 +71,13 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface {
return {};
});
- const isin = profile?.isin?.split(';')?.[0];
+ const cusip = profile?.cusip;
+
+ if (cusip) {
+ response.cusip = cusip;
+ }
+
+ const isin = profile?.isins?.[0];
if (isin) {
response.isin = isin;
diff --git a/apps/api/src/services/queues/data-gathering/data-gathering.service.ts b/apps/api/src/services/queues/data-gathering/data-gathering.service.ts
index b79b2a0985..b3e7de0b3e 100644
--- a/apps/api/src/services/queues/data-gathering/data-gathering.service.ts
+++ b/apps/api/src/services/queues/data-gathering/data-gathering.service.ts
@@ -200,6 +200,7 @@ export class DataGatheringService {
assetSubClass,
countries,
currency,
+ cusip,
dataSource,
figi,
figiComposite,
@@ -218,6 +219,7 @@ export class DataGatheringService {
assetSubClass,
countries,
currency,
+ cusip,
dataSource,
figi,
figiComposite,
@@ -234,6 +236,7 @@ export class DataGatheringService {
assetSubClass,
countries,
currency,
+ cusip,
figi,
figiComposite,
figiShareClass,