Browse Source

Clean up

pull/4789/head
Thomas Kaul 3 months ago
parent
commit
d3f9c82f02
  1. 3
      apps/api/src/app/portfolio/portfolio.service.ts
  2. 1
      libs/common/src/lib/interfaces/responses/portfolio-holding-response.interface.ts

3
apps/api/src/app/portfolio/portfolio.service.ts

@ -663,7 +663,6 @@ export class PortfolioService {
grossPerformancePercentWithCurrencyEffect: undefined,
grossPerformanceWithCurrencyEffect: undefined,
historicalData: [],
investmentInBaseCurrency: undefined,
investmentInBaseCurrencyWithCurrencyEffect: undefined,
marketPrice: undefined,
marketPriceMax: undefined,
@ -854,7 +853,6 @@ export class PortfolioService {
grossPerformanceWithCurrencyEffect:
position.grossPerformanceWithCurrencyEffect?.toNumber(),
historicalData: historicalDataArray,
investmentInBaseCurrency: position.investment?.toNumber(),
investmentInBaseCurrencyWithCurrencyEffect:
position.investmentWithCurrencyEffect?.toNumber(),
netPerformance: position.netPerformance?.toNumber(),
@ -955,7 +953,6 @@ export class PortfolioService {
grossPerformancePercentWithCurrencyEffect: undefined,
grossPerformanceWithCurrencyEffect: undefined,
historicalData: historicalDataArray,
investmentInBaseCurrency: 0,
investmentInBaseCurrencyWithCurrencyEffect: 0,
netPerformance: undefined,
netPerformancePercent: undefined,

1
libs/common/src/lib/interfaces/responses/portfolio-holding-response.interface.ts

@ -22,7 +22,6 @@ export interface PortfolioHoldingResponse {
grossPerformancePercentWithCurrencyEffect: number;
grossPerformanceWithCurrencyEffect: number;
historicalData: HistoricalDataItem[];
investmentInBaseCurrency: number;
investmentInBaseCurrencyWithCurrencyEffect: number;
marketPrice: number;
marketPriceMax: number;

Loading…
Cancel
Save