Feature/improve allocations by account (#308)
* Improve allocations by account * Eliminate accounts from PortfolioPosition * Ignore cash assets in the allocation chart by sector, continent and country * Add missing accounts to portfolio details * Update changelog
This commit is contained in:
@@ -2,6 +2,7 @@ import { Access } from './access.interface';
|
||||
import { AdminData } from './admin-data.interface';
|
||||
import { Export } from './export.interface';
|
||||
import { InfoItem } from './info-item.interface';
|
||||
import { PortfolioDetails } from './portfolio-details.interface';
|
||||
import { PortfolioItem } from './portfolio-item.interface';
|
||||
import { PortfolioOverview } from './portfolio-overview.interface';
|
||||
import { PortfolioPerformance } from './portfolio-performance.interface';
|
||||
@@ -20,6 +21,7 @@ export {
|
||||
AdminData,
|
||||
Export,
|
||||
InfoItem,
|
||||
PortfolioDetails,
|
||||
PortfolioItem,
|
||||
PortfolioOverview,
|
||||
PortfolioPerformance,
|
||||
|
@@ -0,0 +1,8 @@
|
||||
import { PortfolioPosition } from '@ghostfolio/common/interfaces';
|
||||
|
||||
export interface PortfolioDetails {
|
||||
accounts: {
|
||||
[name: string]: { current: number; original: number };
|
||||
};
|
||||
holdings: { [symbol: string]: PortfolioPosition };
|
||||
}
|
@@ -5,9 +5,6 @@ import { Country } from './country.interface';
|
||||
import { Sector } from './sector.interface';
|
||||
|
||||
export interface PortfolioPosition {
|
||||
accounts: {
|
||||
[name: string]: { current: number; original: number };
|
||||
};
|
||||
allocationCurrent: number;
|
||||
allocationInvestment: number;
|
||||
assetClass?: AssetClass;
|
||||
|
Reference in New Issue
Block a user