Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Convert exchange rates to OBP format, and optionally post to an OBP instance

Project description


  • Convert a daily rates json src file to valid Open Bank Project payload.

  • HTTP PUT them to an Open Bank Project endpoint to populate the database via the fx api call

  • Uses python3


  • You must have a valid Direct Login token
  • You must have the CanCreateFxRateAtAnyBank permission
export ENDPOINT=<>
export AUTH_TOKEN=<direct-login-token>


  • WRITE_TO_FILE - Write output to disk
  • POST_TO_OBP - Post to Open Bank Project api endpoint

Note: By default this wont post to the enpoint. This is to allow testing to post to an endpoint, set the environment up:

export WRITE_TO_FILE=False
export POST_TO_OBP=True

The above allows you to test before blasting an endpint with invalid data.


pip install -r requirements.txt

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fx2obp, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size fx2obp-0.2-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fx2obp-0.2.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page