From 069660afe4abca540221ff067f9b0fad3d74ba49 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 7 Dec 2021 19:10:40 +0100 Subject: [PATCH] Feature/increase fear and greed index to 10 days (#525) * Increase to 10 days * Update changelog --- CHANGELOG.md | 1 + apps/api/src/app/symbol/symbol.service.ts | 2 +- apps/client/src/app/components/home-market/home-market.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3503770e1..a41523ec9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Increased the historical data chart of the _Fear & Greed Index_ (market mood) to 10 days - Upgraded `prisma` from version `2.30.2` to `3.6.0` ## 1.86.0 - 04.12.2021 diff --git a/apps/api/src/app/symbol/symbol.service.ts b/apps/api/src/app/symbol/symbol.service.ts index 3f377c551..cdd13da8d 100644 --- a/apps/api/src/app/symbol/symbol.service.ts +++ b/apps/api/src/app/symbol/symbol.service.ts @@ -32,7 +32,7 @@ export class SymbolService { let historicalData: HistoricalDataItem[]; if (includeHistoricalData) { - const days = 7; + const days = 10; const marketData = await this.marketDataService.getRange({ dateQuery: { gte: subDays(new Date(), days) }, diff --git a/apps/client/src/app/components/home-market/home-market.html b/apps/client/src/app/components/home-market/home-market.html index 2705530bc..c721d4c78 100644 --- a/apps/client/src/app/components/home-market/home-market.html +++ b/apps/client/src/app/components/home-market/home-market.html @@ -12,7 +12,7 @@
- Last 7 Days + Last 10 Days