ghostfolio/libs/common/src/lib/interfaces/portfolio-position.interface.ts

33 lines
883 B
TypeScript
Raw Normal View History

import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
import { AssetClass, AssetSubClass, Currency } from '@prisma/client';
2021-04-13 21:53:58 +02:00
import { Country } from './country.interface';
import { Sector } from './sector.interface';
2021-04-13 21:53:58 +02:00
export interface PortfolioPosition {
allocationCurrent: number;
allocationInvestment: number;
assetClass?: AssetClass;
assetSubClass?: AssetSubClass | 'CASH';
countries: Country[];
2021-04-13 21:53:58 +02:00
currency: Currency;
exchange?: string;
grossPerformance: number;
grossPerformancePercent: number;
investment: number;
marketChange?: number;
marketChangePercent?: number;
marketPrice: number;
marketState: MarketState;
2021-04-13 21:53:58 +02:00
name: string;
netPerformance: number;
netPerformancePercent: number;
2021-04-13 21:53:58 +02:00
quantity: number;
sectors: Sector[];
transactionCount: number;
2021-04-13 21:53:58 +02:00
symbol: string;
type?: string;
url?: string;
value: number;
2021-04-13 21:53:58 +02:00
}