Browse Source

Reverted cash setting to other

pull/1692/head
Agustin Alexander 3 years ago
parent
commit
f62b1f5373
No known key found for this signature in database GPG Key ID: 8CE7A1BA5D60D7EF
  1. 15
      apps/api/src/app/portfolio/portfolio.service.ts

15
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),

Loading…
Cancel
Save