We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing data from Trading 212 fails if you have share lending entries. You can fix by applying the below:
diff --git a/cgt_calc/parsers/trading212.py b/cgt_calc/parsers/trading212.py index 7d9922f..0f4740c 100644 --- a/cgt_calc/parsers/trading212.py +++ b/cgt_calc/parsers/trading212.py @@ -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":
Example data looks like this:
Lending interest,2024-09-30 01:07:05,,,,"Share lending interest",ref,,,,,,,0.01,"GBP",,
Thanks!
The text was updated successfully, but these errors were encountered:
Makes sense, can you create a pull request for this?
Sorry, something went wrong.
Sure - #590
Thanks again!
No branches or pull requests
Importing data from Trading 212 fails if you have share lending entries. You can fix by applying the below:
Example data looks like this:
Thanks!
The text was updated successfully, but these errors were encountered: