Browse Source

Ignore future-dated account balances in the portfolio calculation

pull/7436/head
Thomas Kaul 1 month ago
parent
commit
007df0c061
  1. 4
      apps/api/src/app/account-balance/account-balance.service.ts
  2. 4
      apps/api/src/app/account/account.service.ts
  3. 4
      apps/api/src/app/activities/activities.service.ts

4
apps/api/src/app/account-balance/account-balance.service.ts

@ -1,7 +1,7 @@
import { PortfolioChangedEvent } from '@ghostfolio/api/events/portfolio-changed.event';
import {
WHERE_ACCOUNT_NOT_EXCLUDED,
isAccountBalanceInFuture
isAccountBalanceInFuture,
WHERE_ACCOUNT_NOT_EXCLUDED
} from '@ghostfolio/api/helper/account.helper';
import { LogPerformance } from '@ghostfolio/api/interceptors/performance-logging/performance-logging.interceptor';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service';

4
apps/api/src/app/account/account.service.ts

@ -1,9 +1,9 @@
import { AccountBalanceService } from '@ghostfolio/api/app/account-balance/account-balance.service';
import { PortfolioChangedEvent } from '@ghostfolio/api/events/portfolio-changed.event';
import {
WHERE_ACCOUNT_NOT_EXCLUDED,
getWhereAccountBalanceNotInFuture,
isAccountBalanceInFuture
isAccountBalanceInFuture,
WHERE_ACCOUNT_NOT_EXCLUDED
} from '@ghostfolio/api/helper/account.helper';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service';
import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service';

4
apps/api/src/app/activities/activities.service.ts

@ -4,8 +4,8 @@ import { CashDetails } from '@ghostfolio/api/app/account/interfaces/cash-details
import { AssetProfileChangedEvent } from '@ghostfolio/api/events/asset-profile-changed.event';
import { PortfolioChangedEvent } from '@ghostfolio/api/events/portfolio-changed.event';
import {
WHERE_ACCOUNT_NOT_EXCLUDED,
isAccountBalanceInFuture
isAccountBalanceInFuture,
WHERE_ACCOUNT_NOT_EXCLUDED
} from '@ghostfolio/api/helper/account.helper';
import { LogPerformance } from '@ghostfolio/api/interceptors/performance-logging/performance-logging.interceptor';
import { BenchmarkService } from '@ghostfolio/api/services/benchmark/benchmark.service';

Loading…
Cancel
Save