Feature/improve investments by sector (#172)
* Improve investments analysis by sector * Update changelog
This commit is contained in:
@@ -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;
|
||||
|
4
libs/common/src/lib/interfaces/sector.interface.ts
Normal file
4
libs/common/src/lib/interfaces/sector.interface.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Sector {
|
||||
name: string;
|
||||
weight: number;
|
||||
}
|
Reference in New Issue
Block a user