Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schwab refund trx support #579

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions cgt_calc/parsers/schwab.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def action_from_str(label: str) -> ActionType:
"Cash In Lieu",
"Visa Purchase",
"MoneyLink Deposit",
"MoneyLink Adj", # likely a returned transfer
]:
return ActionType.TRANSFER

Expand Down
2 changes: 2 additions & 0 deletions tests/test_data/schwab_cash_merger/transactions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ Date,Action,Symbol,Description,Price,Quantity,Fees & Comm,Amount
03/02/2021,Cash Merger,FOO,FOO INC,,,,$1000
03/02/2021,Cash Merger Adj,FOO,FOO INC,,-100,,
03/02/2021,Buy,FOO,FOO INC,$25,100,$6,-$2506
07/01/2016,MoneyLink Adj,,Tfr BANK,,,,$10.00
05/01/2016,MoneyLink Transfer,,Tfr BANK,,,,-$10.00
03/01/2016,MoneyLink Transfer,,Tfr BANK,,,,$2506.00
Loading