Skip to main content

Oanda account connection, order sending and data feed

Project description

Build Status codecov

Oanda Base Package

Uses the REST v20 API to access your Oanda account, send orders and receive data.


Create a virtual environment and activate it.
for ref:

pip install oandabase

Create a .env file in the root folder and add your account number and token. You can add multiple accounts here e.g. live, practice, different accounts for different strategies etc. The classes in the module are setup to default to account=PRACTICE_ACCOUNT and token=PRACTICE_TOKEN, when writing strategies to use different accounts simply pass these as keyword arguments to replace the default ones.
Add .env to your .gitignore to keep your account details local.



Built to be a component of other systems. Read through the classes and they should explain themselves.

Project details

Download files

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

Source Distribution

oandabase-0.1.0.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distribution

oandabase-0.1.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded py3

Supported by

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