Skip to content

Commit

Permalink
Add "Lending interest" to internal interest counter
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbenjacobs committed Feb 8, 2024
1 parent f6a81a6 commit 14ab034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trading212/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Aggregate(splits []fin.Splits, events []TradeEvent) ([]fin.Aggregate, fin.T
}

// handle interest
if e.Action == "Interest on cash" {
if e.Action == "Interest on cash" || e.Action == "Lending interest" {
totals.Interest += e.Total
continue
}
Expand Down

0 comments on commit 14ab034

Please sign in to comment.