parent
fdc89f7182
commit
1226c26a9d
@ -1,5 +1,5 @@
|
||||
import { TimelinePosition } from '@ghostfolio/common/interfaces';
|
||||
import { Position } from '@ghostfolio/common/interfaces';
|
||||
|
||||
export interface PortfolioPositions {
|
||||
positions: TimelinePosition[];
|
||||
positions: Position[];
|
||||
}
|
||||
|
@ -1,12 +1,23 @@
|
||||
import {
|
||||
MarketState,
|
||||
Type
|
||||
} from '@ghostfolio/api/services/interfaces/interfaces';
|
||||
import { Currency } from '@prisma/client';
|
||||
|
||||
export interface Position {
|
||||
averagePrice: number;
|
||||
currency: Currency;
|
||||
firstBuyDate: string;
|
||||
grossPerformance?: number;
|
||||
grossPerformancePercentage?: number;
|
||||
investment: number;
|
||||
investmentInOriginalCurrency?: number;
|
||||
marketPrice?: number;
|
||||
marketState?: MarketState;
|
||||
name?: string;
|
||||
quantity: number;
|
||||
symbol: string;
|
||||
transactionCount: number;
|
||||
type?: Type;
|
||||
url?: string;
|
||||
}
|
||||
|
Loading…
Reference in new issue