* 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>
33 lines
883 B
TypeScript
33 lines
883 B
TypeScript
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
|
|
import { AssetClass, AssetSubClass, Currency } from '@prisma/client';
|
|
|
|
import { Country } from './country.interface';
|
|
import { Sector } from './sector.interface';
|
|
|
|
export interface PortfolioPosition {
|
|
allocationCurrent: number;
|
|
allocationInvestment: number;
|
|
assetClass?: AssetClass;
|
|
assetSubClass?: AssetSubClass | 'CASH';
|
|
countries: Country[];
|
|
currency: Currency;
|
|
exchange?: string;
|
|
grossPerformance: number;
|
|
grossPerformancePercent: number;
|
|
investment: number;
|
|
marketChange?: number;
|
|
marketChangePercent?: number;
|
|
marketPrice: number;
|
|
marketState: MarketState;
|
|
name: string;
|
|
netPerformance: number;
|
|
netPerformancePercent: number;
|
|
quantity: number;
|
|
sectors: Sector[];
|
|
transactionCount: number;
|
|
symbol: string;
|
|
type?: string;
|
|
url?: string;
|
|
value: number;
|
|
}
|