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


Install the pypi package with pip:

$ pip install oandapyV20

Or alternatively install the latest development version from github:

$ pip install git+

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

Download from Github

If you want to run the tests, download the source from github:

$ git clone
$ cd oanda-api-v20
$ python test
$ python install