beancount-import icon indicating copy to clipboard operation
beancount-import copied to clipboard

Vanguard OFX Import Failing due to negative units

Open stin7 opened this issue 5 months ago • 1 comments

$ 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.

stin7 avatar Aug 31 '24 00:08 stin7