IFFranciscoME/ROandaAPI

Support for v20 REST API

Opened this issue · 4 comments

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.

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

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 ?

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.

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?