OANDA - API Access subaccounts

Posted By: chsmac85

OANDA - API Access subaccounts - 12/06/18 13:37

How can I point Zorro to a new subaccount in OANDA?

The zorro docs say to generate a new API key, but that didn't work as the key gives access to ALL accounts and not individual accounts. When i load the second zorro, it still sees the first subaccount.

The OANDA docs state:
http://developer.oanda.com/rest-live-v20/authentication/
A personal access token can be used to access your account through the OANDA v20 API. Once created, a token will grant access to all of your sub-accounts. Please note, your personal access token is like a password, so you should guard it carefully. These tokens are unique to an OANDA account and should be stored securely.

Any suggestions on how to point a second zorro to a second subaccount?
Posted By: AndrewAMD

Re: OANDA - API Access subaccounts - 12/06/18 16:13

Easy, the sub-account number goes in the user field.

Read this, if you haven't already.
https://zorro-project.com/manual/en/oanda.htm
Posted By: chsmac85

Re: OANDA - API Access subaccounts - 12/06/18 22:16

Wow, that's embarrassing!
When I saw Account Id, I had put in my username e.g. chsmac85 and not the account number. I entered the account number there and bingo.

Thank you AndrewAMD
© 2024 lite-C Forums