Skip to content

Convert OFX 2 files to and Open Bank Project (OBP) compatible payload for importing into the api

Notifications You must be signed in to change notification settings

PengfeiLi0218/ofx2obp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Objectives

Populate an Open Bank Project instance with many years of dummy (but valid) transaction data to help with demos, developer experience, and evaluation.

Install

virtualenv -p python3 venv
. venv/bin/activate
pip install -r requirements.txt

Run / Example post to OBP instance

Note: For this to work, you must be:

  • logged in via the api (e.g. via token login method)
  • a 'super admin' (your user id must be in the 'super users' in the props file)

Convert valid OFX file into valid OBP import payload to stdout

python scratch.py -f test.ofx

Convert valid OFX file into valid OBP and post into an OBP instance using curl

The following posts to stdout a valid Open Bank Project payload, which gets inserted into it's database.

python scratch.py -f test.ofx 2>/dev/null | curl -d @- -X POST -H "Content-Type: application/json" -H 'Authorization: DirectLogin token="<TOKEN>"' http://localhost:8080/obp/v2.1.0/sandbox/data-import

test.ofx was generated using fixofx

Do a call to /banks or similar to verify data was added:

curl -H "Content-Type: application/json" -H 'Authorization: DirectLogin token="<TOKEN>"' http://localhost:8080/obp/v3.0.0/banks 

About

Convert OFX 2 files to and Open Bank Project (OBP) compatible payload for importing into the api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%