Browse Source
Task/extend countries mapping in Trackinsight data enhancer service (#6959)
* Extend countries mapping with USA
* Update changelog
pull/6960/head^2
Thomas Kaul
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts
|
|
@ -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/), |
|
|
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). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
|
|
|
|
- Extended the countries mapping in the data enhancer for asset profile data via _Trackinsight_ |
|
|
|
|
|
|
|
|
## 3.6.0 - 2026-05-28 |
|
|
## 3.6.0 - 2026-05-28 |
|
|
|
|
|
|
|
|
### Added |
|
|
### Added |
|
|
|
|
|
@ -13,7 +13,8 @@ import { countries } from 'countries-list'; |
|
|
export class TrackinsightDataEnhancerService implements DataEnhancerInterface { |
|
|
export class TrackinsightDataEnhancerService implements DataEnhancerInterface { |
|
|
private static baseUrl = 'https://www.trackinsight.com/data-api'; |
|
|
private static baseUrl = 'https://www.trackinsight.com/data-api'; |
|
|
private static countriesMapping = { |
|
|
private static countriesMapping = { |
|
|
'Russian Federation': 'Russia' |
|
|
'Russian Federation': 'Russia', |
|
|
|
|
|
USA: 'United States' |
|
|
}; |
|
|
}; |
|
|
private static holdingsWeightTreshold = 0.85; |
|
|
private static holdingsWeightTreshold = 0.85; |
|
|
private static sectorsMapping = { |
|
|
private static sectorsMapping = { |
|
|
|