Skip to content

Commit

Permalink
Added lending interest category (#590)
Browse files Browse the repository at this point in the history
Co-authored-by: richard-britton <[email protected]>
  • Loading branch information
richard-britton and rich-britton authored Feb 4, 2025
1 parent d502709 commit afd08fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cgt_calc/parsers/trading212.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ def action_from_str(label: str, filename: str) -> ActionType:
]:
return ActionType.DIVIDEND

if label in ["Interest on cash"]:
if label in [
"Interest on cash",
"Lending interest",
]:
return ActionType.INTEREST

if label == "Stock Split":
Expand Down

0 comments on commit afd08fd

Please sign in to comment.