|
|
@ -954,9 +954,9 @@ export abstract class PortfolioCalculator { |
|
|
investment, |
|
|
investment, |
|
|
skipErrors, |
|
|
skipErrors, |
|
|
symbol, |
|
|
symbol, |
|
|
averagePrice: !newQuantity.eq(0) |
|
|
averagePrice: newQuantity.eq(0) |
|
|
? investment.div(newQuantity).abs() |
|
|
? new Big(0) |
|
|
: new Big(0), |
|
|
: investment.div(newQuantity).abs(), |
|
|
dividend: new Big(0), |
|
|
dividend: new Big(0), |
|
|
fee: oldAccumulatedSymbol.fee.plus(fee), |
|
|
fee: oldAccumulatedSymbol.fee.plus(fee), |
|
|
firstBuyDate: oldAccumulatedSymbol.firstBuyDate, |
|
|
firstBuyDate: oldAccumulatedSymbol.firstBuyDate, |
|
|
|