This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

oandav20 is an unofficial Python SDK for Oanda v20 REST API in planning mode.

>>> from oandav20 import Oanda
>>> o = Oanda("DEMO", "oanda_access_token", "oanda_account_id")
>>> o.create_order("MARKET", "EUR_USD", "BUY", 10000, own_id="EUR_USD_1")
>>> o.close_trade(own_id="EUR_USD_1")
>>> # Close the HTTP session connection with Oanda
>>> o.client.close()


To install oandav20 you need Python 3.5.x and above because of using type hints (new feature in Python 3.5).

$ pip install oandav20


Apart from the basics (handling account, orders, trading etc.) there are also features such as:

  • pass only one Oanda account ID and remember it (useful, if you manage only one account)
  • update pending orders without closing one and creating one (reusing the previous order details)
  • cancel filtered / all pending orders at once (eg. cancel all fx pairs with the “USD”)
  • close filtered / all open trades at once

Intended to implement:

  • configuration file
  • async support
  • pausing waiting orders
  • cover more useful endpoints
  • and other ideas which may come up …

Intended related projects:

  • data visualization (web page and native mobile application)
  • pattern detection


Full documentation is placed in the docs folder.

Development status

The latest version 0.2.0 covers the minimum to run and keep an automatic trading software in my opinion.

The stable/production 1.0.0 will be released as soon as:

  1. Oanda implement promised features such as streaming, pricing history and tools from Oanda Forex Labs
  2. I create an AOS to know which methods are needed and which not.


If you’ve found a bug or want to suggest new features, please feel free to use Issue Tracker.


All new features, changes and bug fixes of each versions are convered in the CHANGELOG.


oandav20 is licensed under the terms of the MIT License, for more details see the LICENSE.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
oandav20-0.2.0-py3-none-any.whl (18.2 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Aug 19, 2016
oandav20-0.2.0.tar.gz (13.5 kB) Copy SHA256 Checksum SHA256 Source Aug 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting