Skip to content

Commit

Permalink
Updating T212 parser (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrinpinto authored Nov 29, 2024
1 parent d64bd04 commit bb068b9
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 @@ -54,12 +54,14 @@ def action_from_str(label: str, filename: str) -> ActionType:
if label in [
"Market buy",
"Limit buy",
"Stop buy",
]:
return ActionType.BUY

if label in [
"Market sell",
"Limit sell",
"Stop sell",
]:
return ActionType.SELL

Expand Down

0 comments on commit bb068b9

Please sign in to comment.