Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/ofxstatement_fidelity/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class FidelityCSVParser(AbstractStatementParser):
(re.compile(r"^YOU SOLD "), "SELLSTOCK", "SELL"),
(re.compile(r"^DIRECT DEBIT "), "INVBANKTRAN", "DEBIT"),
(re.compile(r"^Electronic Funds Transfer Paid "), "INVBANKTRAN", "DEBIT"),
(re.compile(r"^WIRE TRANSFER TO BANK "), "INVBANKTRAN", "DEBIT"),
(re.compile(r"^TRANSFERRED FROM "), "INVBANKTRAN", "CREDIT"),
(re.compile(r"^TRANSFERRED TO "), "INVBANKTRAN", "DEBIT"),
(re.compile(r"^DIRECT DEPOSIT "), "INVBANKTRAN", "CREDIT"),
Expand All @@ -40,6 +41,8 @@ class FidelityCSVParser(AbstractStatementParser):
(re.compile(r"^PARTIC CONTR "), "INVBANKTRAN", "CREDIT"),
(re.compile(r"^PARTIAL DISTRIBUTION "), "INVBANKTRAN", "DEBIT"),
(re.compile(r"^FED TAX W/H "), "INVBANKTRAN", "DEBIT"),
(re.compile(r"^SHORT-TERM CAP GAIN "), "INVBANKTRAN", "CREDIT"),
(re.compile(r"^LONG-TERM CAP GAIN "), "INVBANKTRAN", "CREDIT"),
]

def __init__(self, filename: str) -> None:
Expand Down