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

32 lines
806 B
TypeScript
Raw Normal View History

import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
2021-04-13 21:53:58 +02:00
import { Currency } from '@prisma/client';
import { Country } from './country.interface';
import { Sector } from './sector.interface';
2021-04-13 21:53:58 +02:00
export interface PortfolioPosition {
accounts: {
[name: string]: { current: number; original: number };
};
allocationCurrent: number;
allocationInvestment: number;
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;
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
}