From 21c7296fe69630bb57a29916b048ff6ceeddde36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Aksel=20Helbo=20Bjergmark?= Date: Sun, 25 Feb 2024 15:48:06 +0100 Subject: [PATCH] Fix importing by ISIN number --- .../yahoo-finance/yahoo-finance.service.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts index b6148d431..913e52a59 100644 --- a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts +++ b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts @@ -38,17 +38,10 @@ export class YahooFinanceService implements DataProviderInterface { }: { symbol: string; }): Promise> { - const { assetClass, assetSubClass, currency, name } = + const response = await this.yahooFinanceDataEnhancerService.getAssetProfile(symbol); - return { - assetClass, - assetSubClass, - currency, - name, - symbol, - dataSource: this.getName() - }; + return response; } public getDataProviderInfo(): DataProviderInfo {