jbms / beancount-import

Web UI for semi-automatically importing external data into beancount
GNU General Public License v2.0
392 stars 101 forks source link

Vanguard OFX Import Failing due to negative units #236

Open stin7 opened 1 month ago

stin7 commented 1 month ago
$ python run.py 
...
AssertionError
> .venv/lib/python3.9/site-packages/beancount_import/source/ofx.py(997)get_entries()
-> assert units < ZERO

Looking in the OFX file downloaded from Vanguard, I see entries like this: <UNIQUEIDTYPE>CUSIP</SECID><SUBACCTSEC>CASH<UNITS>-0.00007<TFERACTION>OUT<POSTYPE>LONG

Any thoughts on how I might try to fix? I'd rather not write a custom importer since I would guess this could be common.