Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/improve symbol validation in Yahoo Finance service (#4445)
Thomas Kaul5783497a66ee
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b52353a35d..950a4d65dc 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++### Changed++- Improved the symbol validation in the _Yahoo Finance_ service (get asset profiles)+## 2.146.0 - 2025-03-15### Changeddiff --git a/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.tsindex 18d6240985..78644726ad 100644--- a/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts+++ b/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts@@ -170,6 +170,8 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface {symbol = quotes[0].symbol;}} catch {}+ } else if (symbol?.includes('-')) {+ throw new Error(`${symbol} is not valid`);} else {symbol = this.convertToYahooFinanceSymbol(symbol);}