Implement new positions endpoint
This commit is contained in:
@@ -9,6 +9,7 @@ import { PortfolioPosition } from './portfolio-position.interface';
|
||||
import { PortfolioReportRule } from './portfolio-report-rule.interface';
|
||||
import { PortfolioReport } from './portfolio-report.interface';
|
||||
import { Position } from './position.interface';
|
||||
import { TimelinePosition } from './timeline-position.interface';
|
||||
import { UserSettings } from './user-settings.interface';
|
||||
import { UserWithSettings } from './user-with-settings';
|
||||
import { User } from './user.interface';
|
||||
@@ -25,6 +26,7 @@ export {
|
||||
PortfolioReport,
|
||||
PortfolioReportRule,
|
||||
Position,
|
||||
TimelinePosition,
|
||||
User,
|
||||
UserSettings,
|
||||
UserWithSettings
|
||||
|
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
grossPerformancePercentage: Big;
|
||||
grossPerformance: Big;
|
||||
marketPrice: number;
|
||||
transactionCount: number;
|
||||
name: string;
|
||||
url: string;
|
||||
type: Type;
|
||||
}
|
Reference in New Issue
Block a user