mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
getCashActivities() walks every account balance and books a synthetic BUY or SELL for each delta. Balances dated in the future were included, so a balance entered ahead of time booked a deposit or withdrawal that has not happened yet. The calculator clamps future activity dates to today rather than dropping them, so the phantom activity landed inside the calculation window and skewed the cash position — an extra activity, and an investment and average price pulled towards the future balance. Refs ghostfolio/ghostfolio#6185pull/7385/head
1 changed files with 7 additions and 0 deletions
Loading…
Reference in new issue