Skip to content

Commit

Permalink
fix: ignore scheduled buy operations
Browse files Browse the repository at this point in the history
  • Loading branch information
wgnf committed Jun 7, 2022
1 parent 9151dec commit 3c85d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
output.csv
transaktionsubersicht.csv
3 changes: 3 additions & 0 deletions dws-to-parqet.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def write_data_to_output(data, output_file):
csv_writer.writerow(['broker', 'currency', 'date', 'fee', 'isin', 'price', 'shares', 'tax', 'type']);

for entry in data:

# this basically happens when the buy-operation was scheduled but not executed yet - i do not want to have those
if not entry['shares']: continue;

if entry['type'].startswith('Regelm. Kauf'):
type = 'Buy';
Expand Down

0 comments on commit 3c85d59

Please sign in to comment.