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.
24 lines
658 B
24 lines
658 B
import { MarketState } from '@ghostfolio/common/types';
|
|
import { AssetClass, AssetSubClass, DataSource } from '@prisma/client';
|
|
|
|
export interface Position {
|
|
assetClass: AssetClass;
|
|
assetSubClass: AssetSubClass;
|
|
averagePrice: number;
|
|
currency: string;
|
|
dataSource: DataSource;
|
|
firstBuyDate: string;
|
|
grossPerformance?: number;
|
|
grossPerformancePercentage?: number;
|
|
investment: number;
|
|
investmentInOriginalCurrency?: number;
|
|
marketPrice?: number;
|
|
marketState?: MarketState;
|
|
name?: string;
|
|
netPerformance?: number;
|
|
netPerformancePercentage?: number;
|
|
quantity: number;
|
|
symbol: string;
|
|
transactionCount: number;
|
|
url?: string;
|
|
}
|
|
|