mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
682 B
27 lines
682 B
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
|
|
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;
|
|
name: string;
|
|
platforms: {
|
|
[name: string]: { current: number; original: number };
|
|
};
|
|
quantity: number;
|
|
sector?: string;
|
|
shareCurrent: number;
|
|
shareInvestment: number;
|
|
transactionCount: number;
|
|
symbol: string;
|
|
type?: string;
|
|
url?: string;
|
|
}
|
|
|