From f62b1f53732f1ef0a1c42fc4c12e4078169c9479 Mon Sep 17 00:00:00 2001 From: Agustin Alexander Date: Sun, 12 Feb 2023 21:13:30 -0300 Subject: [PATCH] Reverted cash setting to other --- apps/api/src/app/portfolio/portfolio.service.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 6e34525d8..98b2698e0 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -1271,25 +1271,10 @@ export class PortfolioService { cashPositions[symbol].allocationInPercentage = value.gt(0) ? new Big(cashPositions[symbol].value).div(value).toNumber() : 0; - cashPositions[symbol].sectors = [ { - "name": "OTHER", - "weight": 1 - }] - cashPositions[symbol].countries = this.matchCurrencyToCountries(symbol) } return cashPositions; } - private matchCurrencyToCountries(aString: string): Country[] { - const csformat = [] - switch (aString) { - case 'USD': - csformat.push(countries.US) - break; - } - return csformat; - } - private getDividend({ activities, date = new Date(0),