Browse Source

Get quotes of active holdings only

pull/7816/head
Thomas Kaul 1 week ago
parent
commit
ebe4a74c08
  1. 1
      apps/api/src/app/portfolio/calculator/portfolio-calculator.ts
  2. 2
      apps/api/src/app/portfolio/current-rate.service.ts

1
apps/api/src/app/portfolio/calculator/portfolio-calculator.ts

@ -291,7 +291,6 @@ export abstract class PortfolioCalculator {
}); });
if (!quantity.eq(0)) { if (!quantity.eq(0)) {
// Get a quote for active holdings only
assetProfileIdentifiersWithQuotes.push({ assetProfileIdentifiersWithQuotes.push({
dataSource, dataSource,
symbol symbol

2
apps/api/src/app/portfolio/current-rate.service.ts

@ -123,8 +123,6 @@ export class CurrentRateService {
}; };
if (includesToday) { if (includesToday) {
// A holding without a quote request also needs a market price of today,
// but it is not in error
const assetProfileIdentifiersWithoutQuotes = [ const assetProfileIdentifiersWithoutQuotes = [
...quoteErrors, ...quoteErrors,
...dataGatheringItems.filter(({ dataSource, symbol }) => { ...dataGatheringItems.filter(({ dataSource, symbol }) => {

Loading…
Cancel
Save