Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for v20 REST API #6

Open
megaquant opened this issue Aug 1, 2017 · 4 comments
Open

Support for v20 REST API #6

megaquant opened this issue Aug 1, 2017 · 4 comments

Comments

@megaquant
Copy link

Thank you for writing this code. I am using the v20 REST API and your functions use the v1 server. Can you add the capability to select the v20 Oanda server? Thank you.

@TianyouZhang
Copy link

Hi Megaquant, I have this problem as well. Have you found a way to solve it?

@IFFranciscoME
Copy link
Owner

Hello and sorry for the delay, i will start working on adding the new capability to the V20 server. Not sure if in this very same repo or start a new one. What do you guys think ?

@megaquant
Copy link
Author

Hi guys,
I have figured out a few things that may help (you may already know). The logical thing to do is to replace the "v1" in your code by "v20" but this doesn't work. You need to use "v3" instead to call the v20 server. This is in the Oanda API documentation. More interestingly, not all the v3 endpoints are yet supported. You'll see that rates (prices) are supported in the REST server but not yet in the REST-V20 so to get prices you need to use v1 in this case even if you have a v20 account (yes, this will work). So it's a mix and match of codes. I have not yet figured out how to get any of the trading functions to work in the v20 (but have not tried much). I would think you should keep the same repo instead of starting a new one. IFFranciscoME thank you for your contributions with this, very much appreciated!
Shawn.

@shindohikaru87
Copy link

Hi, thanks for creating this wonderful package. It is really helpful to have this package to connect to Oanda. Just wondering if this package has been updated to support v20 oanda api?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants