oandapy | Python wrapper for the OANDA REST API | REST library
kandi X-RAY | oandapy Summary
kandi X-RAY | oandapy Summary
Python wrapper for the OANDA REST API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a single transaction
- Make a request to the API
- Get a single order
- Close an order
- Modify an order
- Create a new order for an account
- Returns all orders for an account
- Returns a single account
- Gets a list of accounts
- Create a new account
- Returns a specific instrument
- Returns a list of CandidateCandidates
- Close an instrument
- Returns a list of ecls
- Get historical position ratios
- Retrieve historical spreads
- Gets the commits of all players
- Get orderbook data
- Get the autoch artist
- Get transactions for a given account
- Gets a list of all instruments associated with the account
oandapy Key Features
oandapy Examples and Code Snippets
Community Discussions
Trending Discussions on oandapy
QUESTION
As a means of learning the very basics of algorithmic trading and OANDA, I found a tutorial on how to make a very basic trading algorithm to "practice" algorithmic trading. The only issue is that the tutorial uses OANDA's v1 REST API, whereas it now uses v20 REST API.
The Python module oandapyV20
seems to have replaced oandapy
, and it seems like there are methods that have become deprecated in the newest module. For example, on line #7 of the tutorial, it uses a method called get_history
, and that seems to be totally deprecated now from what I can tell.
My question is, what could I do to replace the get_history
method in particular, and are there any other sections of the code in the tutorial that someone who is familiar with the OANDA v20 REST API might see that are also going to be problematic/need to be totally reworked?
ANSWER
Answered 2020-Jun-26 at 02:51I believe you are looking for the History instrument via the candles
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oandapy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page