Skip to content

Commit

Permalink
Ignore stamp duty column when parsing Trading212 (fixes #321) (#484)
Browse files Browse the repository at this point in the history
Co-authored-by: Martín Villagra <vmartinv@meta.com>
  • Loading branch information
vmartinv and Martín Villagra committed Feb 4, 2024
1 parent bc00448 commit 48661fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cgt_calc/parsers/trading212.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"Charge amount (GBP)",
"Transaction fee (GBP)",
"Finra fee (GBP)",
"Stamp duty (GBP)",
"Notes",
"ID",
"Currency conversion fee (GBP)",
Expand Down Expand Up @@ -99,6 +100,7 @@ def __init__(self, header: list[str], row_raw: list[str], filename: str):
self.exchange_rate = decimal_or_none(row["Exchange rate"])
self.transaction_fee = decimal_or_none(row.get("Transaction fee (GBP)", "0"))
self.finra_fee = decimal_or_none(row.get("Finra fee (GBP)", "0"))
self.stamp_duty = decimal_or_none(row.get("Stamp duty (GBP)", "0"))
self.conversion_fee = decimal_or_none(
row.get("Currency conversion fee (GBP)", "0")
)
Expand Down

0 comments on commit 48661fa

Please sign in to comment.