net performance for current positions (#330)

* implement fees for transaction points #324

* add net performance to current positions #324

* add net performance to calculate timeline #324

* make timeline fee accumulated by default #324

* Update changelog

Co-authored-by: Valentin Zickner <github@zickner.ch>
Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>
This commit is contained in:
Valentin Zickner
2021-09-05 21:21:22 +02:00
committed by GitHub
parent ba234a470e
commit 48ab862bb6
20 changed files with 1031 additions and 265 deletions

View File

@@ -1,5 +1,7 @@
export interface PortfolioPerformance {
currentGrossPerformance: number;
currentGrossPerformancePercent: number;
currentNetPerformance: number;
currentNetPerformancePercent: number;
currentValue: number;
}

View File

@@ -20,6 +20,8 @@ export interface PortfolioPosition {
marketPrice: number;
marketState: MarketState;
name: string;
netPerformance: number;
netPerformancePercent: number;
quantity: number;
sectors: Sector[];
transactionCount: number;

View File

@@ -13,6 +13,8 @@ export interface Position {
marketPrice?: number;
marketState?: MarketState;
name?: string;
netPerformance?: number;
netPerformancePercentage?: number;
quantity: number;
symbol: string;
transactionCount: number;

View File

@@ -9,6 +9,8 @@ export interface TimelinePosition {
grossPerformancePercentage: Big;
investment: Big;
marketPrice: number;
netPerformance: Big;
netPerformancePercentage: Big;
quantity: Big;
symbol: string;
transactionCount: number;