Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/hourly market data updates not refreshing prices for asset profiles with manual data source (#7122)
Thomas Kaul020c982e73c7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a903122d45..4ec1539dae 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++### Fixed++- Fixed an issue with hourly market data updates not refreshing prices for asset profiles with `MANUAL` data source+## 3.15.1 - 2026-06-23### Changeddiff --git a/apps/api/src/services/data-provider/data-provider.service.ts b/apps/api/src/services/data-provider/data-provider.service.tsindex 5d49848fa5..10b0e6fd8b 100644--- a/apps/api/src/services/data-provider/data-provider.service.ts+++ b/apps/api/src/services/data-provider/data-provider.service.ts@@ -662,7 +662,11 @@ export class DataProviderService implements OnModuleInit {);const promise = Promise.resolve(- dataProvider.getQuotes({ requestTimeout, symbols: symbolsChunk })+ dataProvider.getQuotes({+ requestTimeout,+ useCache,+ symbols: symbolsChunk+ }));promises.push(diff --git a/apps/api/src/services/data-provider/interfaces/data-provider.interface.ts b/apps/api/src/services/data-provider/interfaces/data-provider.interface.tsindex a55c9f3289..5002fa87e1 100644--- a/apps/api/src/services/data-provider/interfaces/data-provider.interface.ts+++ b/apps/api/src/services/data-provider/interfaces/data-provider.interface.ts@@ -75,6 +75,7 @@ export interface GetHistoricalParams {export interface GetQuotesParams {requestTimeout?: number;symbols: string[];+ useCache?: boolean;}export interface GetSearchParams {diff --git a/apps/api/src/services/data-provider/manual/manual.service.ts b/apps/api/src/services/data-provider/manual/manual.service.tsindex 87e116dda0..66571c2397 100644--- a/apps/api/src/services/data-provider/manual/manual.service.ts+++ b/apps/api/src/services/data-provider/manual/manual.service.ts@@ -136,7 +136,8 @@ export class ManualService implements DataProviderInterface {}public async getQuotes({- symbols+ symbols,+ useCache = true}: GetQuotesParams): Promise<{ [symbol: string]: DataProviderResponse }> {const response: { [symbol: string]: DataProviderResponse } = {};@@ -164,32 +165,32 @@ export class ManualService implements DataProviderInterface {}});- const symbolProfilesWithScraperConfigurationAndInstantMode =- symbolProfiles.filter(({ scraperConfiguration }) => {+ const symbolProfilesToScrape = symbolProfiles.filter(+ ({ scraperConfiguration }) => {return (- scraperConfiguration?.mode === 'instant' &&+ (scraperConfiguration?.mode === 'instant' || !useCache) &&scraperConfiguration?.selector &&scraperConfiguration?.url);- });-- const scraperResultPromises =- symbolProfilesWithScraperConfigurationAndInstantMode.map(- async ({ scraperConfiguration, symbol }) => {- try {- const marketPrice = await this.scrape({- scraperConfiguration,- symbol- });- return { marketPrice, symbol };- } catch (error) {- this.logger.error(- `Could not get quote for ${symbol} (${this.getName()}): [${error.name}] ${error.message}`- );- return { symbol, marketPrice: undefined };- }+ }+ );++ const scraperResultPromises = symbolProfilesToScrape.map(+ async ({ scraperConfiguration, symbol }) => {+ try {+ const marketPrice = await this.scrape({+ scraperConfiguration,+ symbol+ });+ return { marketPrice, symbol };+ } catch (error) {+ this.logger.error(+ `Could not get quote for ${symbol} (${this.getName()}): [${error.name}] ${error.message}`+ );+ return { symbol, marketPrice: undefined };}- );+ }+ );// Wait for all scraping requests to complete concurrentlyconst scraperResults = await Promise.all(scraperResultPromises);