Giter Site home page Giter Site logo

oanda_accessor_pyv20's Introduction

oanda_accessor_pyv20

Python application Maintainability Test Coverage

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

oanda_accessor_pyv20's People

Contributors

damyanbg avatar siruku6 avatar

Watchers

 avatar

oanda_accessor_pyv20's Issues

update deprecation warning expression

For example, the following is the warning for deprecated way of a configure on serverless.

$ serverless doctor
1 deprecation triggered in the last command:

Starting with version 4.0.0, following property will be replaced:
  "provider.iamRoleStatements" -> "provider.iam.role.statements"
More info: https://serverless.com/framework/docs/deprecations/#PROVIDER_IAM_SETTINGS_V3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.