Feature/improve investments by sector (#172)

* Improve investments analysis by sector

* Update changelog
This commit is contained in:
Thomas
2021-06-16 17:05:43 +02:00
committed by GitHub
parent 198eaf57d3
commit 0264b592b9
11 changed files with 105 additions and 135 deletions

View File

@@ -2,6 +2,7 @@ import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
import { Currency } from '@prisma/client';
import { Country } from './country.interface';
import { Sector } from './sector.interface';
export interface PortfolioPosition {
accounts: {
@@ -14,7 +15,6 @@ export interface PortfolioPosition {
exchange?: string;
grossPerformance: number;
grossPerformancePercent: number;
industry?: string;
investment: number;
marketChange?: number;
marketChangePercent?: number;
@@ -22,7 +22,7 @@ export interface PortfolioPosition {
marketState: MarketState;
name: string;
quantity: number;
sector?: string;
sectors: Sector[];
transactionCount: number;
symbol: string;
type?: string;

View File

@@ -0,0 +1,4 @@
export interface Sector {
name: string;
weight: number;
}