ghostfolio/libs/common/src/lib/interfaces/portfolio-position.interface.ts
Thomas 0264b592b9
Feature/improve investments by sector (#172)
* Improve investments analysis by sector

* Update changelog
2021-06-16 17:05:43 +02:00

32 lines
806 B
TypeScript

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: {
[name: string]: { current: number; original: number };
};
allocationCurrent: number;
allocationInvestment: number;
countries: Country[];
currency: Currency;
exchange?: string;
grossPerformance: number;
grossPerformancePercent: number;
investment: number;
marketChange?: number;
marketChangePercent?: number;
marketPrice: number;
marketState: MarketState;
name: string;
quantity: number;
sectors: Sector[];
transactionCount: number;
symbol: string;
type?: string;
url?: string;
value: number;
}