Browse Source

do not use the average buy price as the first value of the market price chart

pull/4793/head
bptrgx 1 month ago
parent
commit
5276f2280f
  1. 5
      apps/api/src/app/portfolio/portfolio.service.ts

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

@ -793,10 +793,7 @@ export class PortfolioService {
historicalDataArray.push({
date,
averagePrice: currentAveragePrice,
marketPrice:
historicalDataArray.length > 0
? marketPrice
: currentAveragePrice,
marketPrice,
quantity: currentQuantity
});

Loading…
Cancel
Save