Python script that converts .ofx and .qfx files to .csv
-
Have Python 3 installed
-
Install dependencies
python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements.txt
-
Put the ofx files in the same folder as
ofx2csv.py
-
Do
python ofx2csv.py
It defaults to csv
. You can also request JSON.
python ofx2csv.py -o json
It defaults to *.ofx
; you can specify a file if you want:
python ofx2csv.py -i foo.qfx
Or two files:
python ofx2csv.py -i foo.qfx bar.qfx
You can also include wildcards:
python ofx2csv.py -i 2024-*.qfx bar.qfx