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.
20 lines
422 B
20 lines
422 B
3 years ago
|
import { Currency } from '@prisma/client';
|
||
|
|
||
|
export interface PortfolioItem {
|
||
|
date: string;
|
||
|
grossPerformancePercent: number;
|
||
|
investment: number;
|
||
|
positions: { [symbol: string]: Position };
|
||
|
value: number;
|
||
|
}
|
||
|
|
||
|
export interface Position {
|
||
|
averagePrice: number;
|
||
|
currency: Currency;
|
||
|
firstBuyDate: string;
|
||
|
investment: number;
|
||
|
investmentInOriginalCurrency?: number;
|
||
|
marketPrice?: number;
|
||
|
quantity: number;
|
||
|
}
|