Skip to content

Commit

Permalink
fix: schwab doesn't use a header in their csv any more
Browse files Browse the repository at this point in the history
- also: add "Journaled Shares" as a buy type. it's actually an in-kind
  transfer that needs to be manually handled anyway
  • Loading branch information
redstreet committed Feb 9, 2024
1 parent 1d37918 commit c7e7c5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Importer(csvreader.Importer, investments.Importer):
def custom_init(self):
self.max_rounding_error = 0.04
self.filename_pattern_def = '.*_Transactions_'
self.header_identifier = '"Transactions for account.*'
self.header_identifier = ''
self.column_labels_line = '"Date","Action","Symbol","Description","Quantity","Price","Fees & Comm","Amount"'
self.get_ticker_info = self.get_ticker_info_from_id
self.date_format = '%m/%d/%Y'
Expand All @@ -32,6 +32,7 @@ def custom_init(self):
'Bank Interest': 'income',
'Bank Transfer': 'cash',
'Buy': 'buystock',
'Journaled Shares': 'buystock', # These are in-kind tranfers
'Reinvestment Adj': 'buystock',
'Div Adjustment': 'dividends',
'Long Term Cap Gain Reinvest': 'capgainsd_lt',
Expand Down

0 comments on commit c7e7c5f

Please sign in to comment.