mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
430 B
23 lines
430 B
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;
|
|
}
|
|
|