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.
 
 
 
 
 

34 lines
939 B

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 {
allocationCurrent: number;
allocationInvestment: number;
assetClass?: AssetClass;
assetSubClass?: AssetSubClass | 'CASH' | 'EMERGENCY_FUND';
countries: Country[];
currency: string;
dataSource: DataSource;
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;
}