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 { | 
					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'; | 
					import { Currency } from '@prisma/client'; | 
				
			||||
 | 
					
 | 
				
			||||
export interface Position { | 
					export interface Position { | 
				
			||||
  averagePrice: number; | 
					  averagePrice: number; | 
				
			||||
  currency: Currency; | 
					  currency: Currency; | 
				
			||||
  firstBuyDate: string; | 
					  firstBuyDate: string; | 
				
			||||
 | 
					  grossPerformance?: number; | 
				
			||||
 | 
					  grossPerformancePercentage?: number; | 
				
			||||
  investment: number; | 
					  investment: number; | 
				
			||||
  investmentInOriginalCurrency?: number; | 
					  investmentInOriginalCurrency?: number; | 
				
			||||
  marketPrice?: number; | 
					  marketPrice?: number; | 
				
			||||
 | 
					  marketState?: MarketState; | 
				
			||||
 | 
					  name?: string; | 
				
			||||
  quantity: number; | 
					  quantity: number; | 
				
			||||
 | 
					  symbol: string; | 
				
			||||
  transactionCount: number; | 
					  transactionCount: number; | 
				
			||||
 | 
					  type?: Type; | 
				
			||||
 | 
					  url?: string; | 
				
			||||
} | 
					} | 
				
			||||
 | 
				
			|||||
					Loading…
					
					
				
		Reference in new issue