wealthfolio icon indicating copy to clipboard operation
wealthfolio copied to clipboard

Cash Balance Becomes Negative with Multiple `BUY` Activity Orders

Open dp-singh opened this issue 5 months ago • 2 comments

When only BUY orders are input, the cumulative cash balance becomes negative on the AccountPage. (Refer to the screenshot)

Steps to Reproduce:

  • Enter multiple BUY orders for share in specific account.
  • Observe that the cash balance becomes negative on the AccountPage.

image image

Technical Observation: In the calculate_historical_value function, the handling of cumulative_cash assumes that there are sufficient "DEPOSIT", "TRANSFER_IN", or "CONVERSION_IN" activities to cover the costs associated with BUY orders.

dp-singh avatar Sep 13 '24 16:09 dp-singh