From bfeb59163c844dfcdd0ff15d63ccdcf928809622 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 3 Jul 2025 08:05:31 +0200 Subject: [PATCH] Extend getQuotes() --- .../data-provider/rapid-api/rapid-api.service.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts b/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts index 05f1c0e5d..196cb0b1f 100644 --- a/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts +++ b/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts @@ -11,7 +11,10 @@ import { IDataProviderHistoricalResponse, IDataProviderResponse } from '@ghostfolio/api/services/interfaces/interfaces'; -import { ghostfolioFearAndGreedIndexSymbol } from '@ghostfolio/common/config'; +import { + ghostfolioFearAndGreedIndexSymbol, + ghostfolioFearAndGreedIndexSymbolStocks +} from '@ghostfolio/common/config'; import { DATE_FORMAT, getYesterday } from '@ghostfolio/common/helper'; import { DataProviderInfo, @@ -99,11 +102,16 @@ export class RapidApiService implements DataProviderInterface { try { const symbol = symbols[0]; - if (symbol === ghostfolioFearAndGreedIndexSymbol) { + if ( + [ + ghostfolioFearAndGreedIndexSymbol, + ghostfolioFearAndGreedIndexSymbolStocks + ].includes(symbol) + ) { const fgi = await this.getFearAndGreedIndex(); return { - [ghostfolioFearAndGreedIndexSymbol]: { + [symbol]: { currency: undefined, dataSource: this.getName(), marketPrice: fgi.now.value,