Skip to content

Commit

Permalink
add schwab refund trx support (#579)
Browse files Browse the repository at this point in the history
Co-authored-by: Ruslan Sayfutdinov <[email protected]>
  • Loading branch information
vmartinv and KapJI authored Dec 24, 2024
1 parent 3f19a29 commit 2aa2964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 2aa2964

Please sign in to comment.