Feature/clean up unused interfaces (#4685)
* Clean up unused interfaces
This commit is contained in:
parent
037d3b1a60
commit
11629ffd26
@ -1,23 +0,0 @@
|
|||||||
import { PortfolioItem, Position } from '@ghostfolio/common/interfaces';
|
|
||||||
|
|
||||||
import { Order } from '../order';
|
|
||||||
|
|
||||||
export interface PortfolioInterface {
|
|
||||||
get(aDate?: Date): PortfolioItem[];
|
|
||||||
|
|
||||||
getFees(): number;
|
|
||||||
|
|
||||||
getPositions(aDate: Date): {
|
|
||||||
[symbol: string]: Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
getSymbols(aDate?: Date): string[];
|
|
||||||
|
|
||||||
getTotalBuy(): number;
|
|
||||||
|
|
||||||
getTotalSell(): number;
|
|
||||||
|
|
||||||
getOrders(): Order[];
|
|
||||||
|
|
||||||
getValue(aDate?: Date): number;
|
|
||||||
}
|
|
@ -29,8 +29,6 @@ import type { PortfolioChart } from './portfolio-chart.interface';
|
|||||||
import type { PortfolioDetails } from './portfolio-details.interface';
|
import type { PortfolioDetails } from './portfolio-details.interface';
|
||||||
import type { PortfolioDividends } from './portfolio-dividends.interface';
|
import type { PortfolioDividends } from './portfolio-dividends.interface';
|
||||||
import type { PortfolioInvestments } from './portfolio-investments.interface';
|
import type { PortfolioInvestments } from './portfolio-investments.interface';
|
||||||
import type { PortfolioItem } from './portfolio-item.interface';
|
|
||||||
import type { PortfolioOverview } from './portfolio-overview.interface';
|
|
||||||
import type { PortfolioPerformance } from './portfolio-performance.interface';
|
import type { PortfolioPerformance } from './portfolio-performance.interface';
|
||||||
import type { PortfolioPosition } from './portfolio-position.interface';
|
import type { PortfolioPosition } from './portfolio-position.interface';
|
||||||
import type { PortfolioReportRule } from './portfolio-report-rule.interface';
|
import type { PortfolioReportRule } from './portfolio-report-rule.interface';
|
||||||
@ -116,8 +114,6 @@ export {
|
|||||||
PortfolioHoldingResponse,
|
PortfolioHoldingResponse,
|
||||||
PortfolioHoldingsResponse,
|
PortfolioHoldingsResponse,
|
||||||
PortfolioInvestments,
|
PortfolioInvestments,
|
||||||
PortfolioItem,
|
|
||||||
PortfolioOverview,
|
|
||||||
PortfolioPerformance,
|
PortfolioPerformance,
|
||||||
PortfolioPerformanceResponse,
|
PortfolioPerformanceResponse,
|
||||||
PortfolioPosition,
|
PortfolioPosition,
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
import { Position } from '@ghostfolio/common/interfaces';
|
|
||||||
|
|
||||||
export interface PortfolioItem {
|
|
||||||
date: string;
|
|
||||||
grossPerformancePercent: number;
|
|
||||||
investment: number;
|
|
||||||
positions: { [symbol: string]: Position };
|
|
||||||
value: number;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
export interface PortfolioOverview {
|
|
||||||
cash: number;
|
|
||||||
committedFunds: number;
|
|
||||||
fees: number;
|
|
||||||
ordersCount: number;
|
|
||||||
totalBuy: number;
|
|
||||||
totalSell: number;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user