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({ historicalDataArray.push({
date, date,
averagePrice: currentAveragePrice, averagePrice: currentAveragePrice,
marketPrice: marketPrice,
historicalDataArray.length > 0
? marketPrice
: currentAveragePrice,
quantity: currentQuantity quantity: currentQuantity
}); });

Loading…
Cancel
Save