Browse Source

Bugfix/resolve exception in benchmark service when current market price unavailable (#7101)

* Handle exception

* Update changelog
pull/7103/head
Thomas Kaul 7 days ago
committed by GitHub
parent
commit
9580cc94e5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 8
      apps/api/src/app/endpoints/benchmarks/benchmarks.service.ts

1
CHANGELOG.md

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed an issue in the data provider service where asset profiles and historical data could be missing for symbols that exist in multiple data sources by keying the responses by the asset profile identifier
- Resolved an exception in the benchmarks service when the current market price is unavailable
## 3.13.0 - 2026-06-20

8
apps/api/src/app/endpoints/benchmarks/benchmarks.service.ts

@ -81,6 +81,14 @@ export class BenchmarksService {
})
]);
if (!currentSymbolItem) {
this.logger.error(
`No current market price is available for ${symbol} (${dataSource})`
);
return { marketData };
}
const exchangeRates =
await this.exchangeRateDataService.getExchangeRatesByCurrency({
startDate,

Loading…
Cancel
Save