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

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

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

Loading…
Cancel
Save