ghostfolio/apps/api/src/app/portfolio/interfaces/portfolio-position.interface.ts

28 lines
682 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';
export interface PortfolioPosition {
currency: Currency;
exchange?: string;
grossPerformance: number;
grossPerformancePercent: number;
industry?: string;
investment: number;
marketChange?: number;
marketChangePercent?: number;
marketPrice: number;
marketState: MarketState;
2021-04-13 21:53:58 +02:00
name: string;
platforms: {
[name: string]: { current: number; original: number };
};
quantity: number;
sector?: string;
shareCurrent: number;
shareInvestment: number;
transactionCount: number;
2021-04-13 21:53:58 +02:00
symbol: string;
type?: string;
url?: string;
}