Oanda and third party applications

Posted By: Darxtar

Oanda and third party applications - 05/24/16 12:15

Hi all,

I am new here and am interested in using Zorro S with Oanda,
however I want to test the results of the Z7 strategy in the test account.
I am also planning to work on my own strategies, when I get more confident with writing scripts laugh

My situation:
I have generated a token in the demo account, put it in the password field without any username and tried to trade on the demo oanda account as suggested in the docs.
After pressing "Trade" I received the following error:

Z7 (oP group) ..
Login Oanda (demo)..
!The access token provided does not allow this request to be made
!No valid account!
Can't connect!

After a little bit of searching, I came across the following link:

http://developer.oanda.com/rest-live/authentication/

..which states:
**************************************
Third Party Applications
OANDA supports third party applications to access the OANDA API on behalf of OANDA users.
OANDA’s API uses the OAuth 2.0 protocol to provide this capability. It is the responsibility of
the third party application to successfully complete the OAuth authentication flow to obtain
the required access token. Depending on the application, third party applications will use
either the server-side or the client-side OAuth flows offered by OANDA.

Once the access token has been obtained, your application can use it in the same manner
a personal access token is used.

Register Your Application

Contact api@oanda.com to register your application with OANDA. Please clearly state in the email
that you would like to register your application with the OANDA API and provide the following information.

Application name
Application description
Authorized redirect URI (The HTTP redirect URIs must be protected with TLS security)
Once all required information is received and approved by OANDA*, we will then provide you with the following credentials.

Client Application Id
Client Application Secret
Please treat the client application secret as a password and keep it in a secure location.

*Please note: OANDA does not guarantee that your application will be accepted. All applications are subjected to
OANDA due diligence review. If you are successful in your application, please note that you will be bound by the
relevant terms and conditions stipulated by OANDA.

****************************************

My questions are:
What would you recommend for the following:

Application name <= have you named it Zorro or mentioned explicitly this was a trading bot: e.g. Z7bot?
Application description
Authorized redirect URI (The HTTP redirect URIs must be protected with TLS security) <= what is the redirect URI used by Zorro?
What do they mean about the OANDA due diligence review?

Thank you all in advance for your help and suggestions, I hope this question is useful to other newbies too!

Cheers
Posted By: jcl

Re: Oanda and third party applications - 05/24/16 14:20

Contact Oanda and request a token for API access. Normally your demo account token should work anyway, but we got reports from some users that had to contact Oanda explicitely.

You need not register Zorro - all you need is an API access token.
Posted By: Darxtar

Re: Oanda and third party applications - 05/27/16 17:16

The fix was to request a legacy account.

Thanks
© 2024 lite-C Forums