Oanda Base Package
Uses the REST v20 API to access your Oanda account, send orders and receive data.
Installation
Create a virtual environment and activate it.
for ref: https://docs.python.org/3/tutorial/venv.html
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 oanda.py 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.
PRACTICE_ACCOUNT=XXX-XXX-XXXXXXXX-XXX
PRACTICE_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Usage:
Built to be a component of other systems. Read through the classes and they should explain themselves.
Metadata
Release files for oandabase 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oandabase-0.1.0.tar.gz | 6.2 kB | Without provenance | Details for oandabase-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oandabase-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for oandabase-0.1.0-py3-none-any.whl |
Total release size: 12.7 kB
Release files / oandabase-0.1.0.tar.gz
| Download URL | oandabase-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfe69b1ea8abff0d72a60c5e83b49760146bd7f8e0c007243df949a504007f62
|
|
BLAKE2b-256 checksum How to use checksums |
87a78ae79195c19da3bff28e47a58b176baf59d7557f59bea930f03bbed9db12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.4
|
Release files / oandabase-0.1.0-py3-none-any.whl
| Download URL | oandabase-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c209a3c527536d6124633ff754659c3af86a774d6471ce0e8ee8c816d4976a3
|
|
BLAKE2b-256 checksum How to use checksums |
b2683ec62137af54b7f4dd3509001c1e777c8bdfc1dcfb0541ca26bc058323cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.4
|
Security for oandabase 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.