2021-07-20 22:52:50 +02:00
|
|
|
import {
|
|
|
|
MarketState,
|
|
|
|
Type
|
|
|
|
} from '@ghostfolio/api/services/interfaces/interfaces';
|
|
|
|
import { Currency } from '@prisma/client';
|
|
|
|
import Big from 'big.js';
|
|
|
|
|
|
|
|
export interface TimelinePosition {
|
|
|
|
averagePrice: Big;
|
|
|
|
currency: Currency;
|
|
|
|
firstBuyDate: string;
|
|
|
|
marketState: MarketState;
|
|
|
|
quantity: Big;
|
|
|
|
symbol: string;
|
|
|
|
investment: Big;
|
2021-07-20 23:32:18 +02:00
|
|
|
grossPerformancePercentage: Big | number; // TODO
|
|
|
|
grossPerformance: Big | number; // TODO
|
2021-07-20 22:52:50 +02:00
|
|
|
marketPrice: number;
|
|
|
|
transactionCount: number;
|
|
|
|
name: string;
|
|
|
|
url: string;
|
|
|
|
type: Type;
|
|
|
|
}
|