ghostfolio/libs/common/src/lib/interfaces/portfolio-position.interface.ts
Thomas Kaul 6aae0cc1e4
Bugfix/fix issue with value in value redaction interceptor (#1627)
* Fix issue with value in value redaction interceptor

* Fix format of world map

* Update changelog
2023-01-29 09:58:05 +01:00

36 lines
953 B
TypeScript

import { AssetClass, AssetSubClass, DataSource } from '@prisma/client';
import { Market, MarketState } from '../types';
import { Country } from './country.interface';
import { Sector } from './sector.interface';
export interface PortfolioPosition {
allocationInPercentage: number;
assetClass?: AssetClass;
assetSubClass?: AssetSubClass | 'CASH';
countries: Country[];
currency: string;
dataSource: DataSource;
dateOfFirstActivity: Date;
exchange?: string;
grossPerformance: number;
grossPerformancePercent: number;
investment: number;
marketChange?: number;
marketChangePercent?: number;
marketPrice: number;
markets?: { [key in Market]: number };
marketState: MarketState;
name: string;
netPerformance: number;
netPerformancePercent: number;
quantity: number;
sectors: Sector[];
transactionCount: number;
symbol: string;
type?: string;
url?: string;
value?: number;
valueInPercentage?: number;
}