From 14ab034ddbc8198c05ba5eaaa513e64df2de74f1 Mon Sep 17 00:00:00 2001 From: Gerben Jacobs Date: Thu, 8 Feb 2024 20:35:14 +0100 Subject: [PATCH] Add "Lending interest" to internal interest counter --- trading212/aggregate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trading212/aggregate.go b/trading212/aggregate.go index d15c1bb..82faf66 100644 --- a/trading212/aggregate.go +++ b/trading212/aggregate.go @@ -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 }