The OANDA REST-V20 package offers an API to the OANDA V20 REST service. To use the API-service you will need a token and an account. This applies for both live and practice accounts. For details check

Download & Install

Install the package with pip:

$ pip install git+

You may consider using virtualenv to create isolated Python environments. Python 3.4 has pyvenv providing the same kind of functionality.

From Github

$ git clone
$ cd oanda-api-v20

Run the tests:
$ python test
$ python install