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.
32 lines
813 B
32 lines
813 B
import {
|
|
EnhancedSymbolProfile,
|
|
HistoricalDataItem
|
|
} from '@ghostfolio/common/interfaces';
|
|
import { OrderWithAccount } from '@ghostfolio/common/types';
|
|
import { Tag } from '@prisma/client';
|
|
|
|
export interface PortfolioPositionDetail {
|
|
averagePrice: number;
|
|
firstBuyDate: string;
|
|
grossPerformance: number;
|
|
grossPerformancePercent: number;
|
|
historicalData: HistoricalDataItem[];
|
|
investment: number;
|
|
marketPrice: number;
|
|
maxPrice: number;
|
|
minPrice: number;
|
|
netPerformance: number;
|
|
netPerformancePercent: number;
|
|
orders: OrderWithAccount[];
|
|
quantity: number;
|
|
SymbolProfile: EnhancedSymbolProfile;
|
|
tags: Tag[];
|
|
transactionCount: number;
|
|
value: number;
|
|
}
|
|
|
|
export interface HistoricalDataContainer {
|
|
isAllTimeHigh: boolean;
|
|
isAllTimeLow: boolean;
|
|
items: HistoricalDataItem[];
|
|
}
|
|
|