oanda-chart
Oanda forex candle chart tkinter widget.
Video Demo
Quick Sample of Usage
This code is a complete script for a working chart provided that:
- There is a working internet connection.
- An
OANDA_TOKENenvironmental variable is set to a valid access token.
import tkinter
import os
from oanda_chart import ChartManager
root = tkinter.Tk()
manager = ChartManager(os.getenv("OANDA_TOKEN"))
chart = manager.create_chart(root, flags=True, width=700, height=400)
chart.grid(row=0, column=0, sticky="nsew")
root.rowconfigure(0, weight=1)
root.columnconfigure(0, weight=1)
root.mainloop()
Some Background
The charts rely on the oanda-candles package which pulls candles from Oanda through their V20 Restful API The user must supply a secret token string that is associated with either a demo or real brokerage account with Oanda.
Feature Summary
- This is strictly for tkinter applications.
- Only Oanda Forex candles are charted.
- User must supply a secret access token to their Oanda account.
- By dragging on chart user can pan about and candles are downloaded automatically as needed.
- Chart automatically keeps candles up to date with checks for recent prices every 5 seconds.
- Panning around can be done both in and out of a mode where the candles are adjusted to fit view.
- Dragging mouse on price scale makes candles taller or shorter.
- Dragging mouse on time scale makes them fatter or narrower (and so does mouse wheel).
- An optional Pair (instrument) selector with flags matching currency is an option for the chart.
- Pair (instruments) are also selectable from drop down.
- Granularity of candles (e.g. Monthly, hourly, etc) are limited to certain values supported by Oanda's V20 API.
- Bid, Mid, or Ask price can be selected for (default is Bid).
- All the selectors can be linked to one of several colors to enable changing a pair for one chart to also change it for others and such.
Some Missing Features
Some features a trader might expect of a candle applications but which are presently missing:
- There are no annotations supported yet (no putting lines, or text, etc in chart).
- There is not selection mechanism for candles to see stats on them specifically.
- There is no way to place an order or see your order info.
- There are no indicators other than the candles.
Metadata
Release files for oanda-chart 0.1.3
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 |
|---|---|---|---|---|
| oanda-chart-0.1.3.tar.gz | 187.6 kB | Without provenance | Details for oanda-chart-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oanda_chart-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for oanda_chart-0.1.3-py3-none-any.whl |
Total release size: 386.5 kB
Release files / oanda-chart-0.1.3.tar.gz
| Download URL | oanda-chart-0.1.3.tar.gz |
|---|---|
| Size | 187.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52bf1d3188780f3fa8e81d81000319baf0ea1e54bb33c1a3b7c71d9df4bc15a6
|
|
BLAKE2b-256 checksum How to use checksums |
1d81259f22ffda5eaa8b58e90153ba2de57e6ea74e35830e07c58d4f66c979be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.8.2 Windows/10
|
Release files / oanda_chart-0.1.3-py3-none-any.whl
| Download URL | oanda_chart-0.1.3-py3-none-any.whl |
|---|---|
| Size | 199.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65396c9f0ddd7952dafedd327ea904b519122bbf3b485fc9dd77da60bb8f0f57
|
|
BLAKE2b-256 checksum How to use checksums |
29943a6ec429b48135f8bc65e4a62db0e8263e08ac4a1cb0168a4335ac6a19af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.8.2 Windows/10
|
Security for oanda-chart 0.1.3
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.