* implement fees for transaction points #324 * add net performance to current positions #324 * add net performance to calculate timeline #324 * make timeline fee accumulated by default #324 * Update changelog Co-authored-by: Valentin Zickner <github@zickner.ch> Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>
23 lines
607 B
TypeScript
23 lines
607 B
TypeScript
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
|
|
import { AssetClass, Currency } from '@prisma/client';
|
|
|
|
export interface Position {
|
|
assetClass: AssetClass;
|
|
averagePrice: number;
|
|
currency: Currency;
|
|
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;
|
|
}
|