This app lets you easily load candle data of Foreign Currency from Oanda API.
Project description
oanda_accessor_pyv20
This app lets you easily load candle data of Foreign Currency from Oanda API.
Dependencies
You have to setup followging packages or modules on your host machine.
- docker
- docker compose
Setup development environment
$ docker compose build
$ docker compose run package_base bash
# Run unit test
/opt# pipenv run pytest
How to use
$ pipenv run python
Loading .env environment variables...
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Python 3.8.1 (default, Feb 2 2020, 08:37:37)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
# TODO: modify after making a module
>>> from oanda_accessor_pyv20 import OandaInterface
>>> o_interface = OandaInterface(instrument="GBP_JPY", account_id="101-000-00000000-000", access_token="11111111222222221111111122222222-11111111222222221111111122222222")
>>> result = o_interface.load_specify_length_candles()
>>> result["candles"]
open high low close volume complete time
0 160.006 160.052 159.995 160.044 968 True 2022-12-23 17:00:00
1 160.046 160.066 160.004 160.056 728 True 2022-12-23 17:05:00
...
58 159.988 160.121 159.954 160.015 629 True 2022-12-23 21:50:00
59 160.010 160.138 159.952 160.029 166 True 2022-12-23 21:55:00
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oanda_accessor_pyv20-0.0.6.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for oanda_accessor_pyv20-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad80f56c2056df90fbfc9ab74d00dfdf7501802b4f99ee31e97d61678c2bcc3b |
|
MD5 | 3430b51d64474dcf1687b23645347512 |
|
BLAKE2b-256 | d2f66851d973333b1185adc03ae79c325d3e1824dfdb086ca1c8fe87fce9955f |
Close
Hashes for oanda_accessor_pyv20-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aa49baf0d82e80e5265255bcf040149d0d507a1fa21496195858acbf0a3ae4a |
|
MD5 | f201f0977059ee8a548333b05d883bd4 |
|
BLAKE2b-256 | ecf97c0fedb07a84522dfd48099e4247e4818a3ab68bdc0afbc36d530ee3bf56 |