mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
				 12 changed files with 77 additions and 66 deletions
			
			
		@ -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