You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue I ran into was that CGLONG and CGSHORT distributions were showing up in the OFX with a transaction.type of income, and then would be classified as dividends based on this code in investments.py:
def get_target_acct(self, transaction, ticker):
target = self.get_target_acct_custom(transaction, ticker)
if target:
return target
if transaction.type == 'income' and getattr(transaction, 'income_type', None) == 'DIV':
return self.target_account_map.get('dividends', None)
return self.target_account_map.get(transaction.type, None)
The text was updated successfully, but these errors were encountered:
Income type fields seem to be used inconsistently by institutions. We can still try to guess where possible.
From #41 (comment)
With a version of
investments.py
that includes the changes discussed here. I also very lightly modified the providedfidelity
class to look like this:The issue I ran into was that
CGLONG
andCGSHORT
distributions were showing up in the OFX with atransaction.type
ofincome
, and then would be classified as dividends based on this code ininvestments.py
:The text was updated successfully, but these errors were encountered: