This project is a plugin for ofxstatement that will process a JSON file of investment account transaction history from Charles Schwab and convert it to OFX format, suitable for importing into GnuCash.
Use pipenv
to run the converter:
$ pip3 install pipenv --user (if it hasn't already been set up)
$ cd ofxstatement-schwab-json
$ pipenv sync --dev
$ pipenv shell
$ ofxstatement convert -t schwab_json Name_XXX321_Transactions_20240101-123456.json import.ofx
Use pipenv
to make a clean development environment.
$ cd ofxstatement-schwab-json
$ pipenv sync --dev
$ pipenv shell
$ pytest
$ pip3 install mypy black
$ mypy src
$ black src
This will download all the dependencies and install them into your virtual environment. After this, you should be able to do:
$ ofxstatement list-plugins
The following plugins are available:
schwab_json Parses Schwab JSON export of investment transactions
$ python -m build