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

What to put into OANDA_ACCOUNT= #2

Open
hoverlord opened this issue Jun 21, 2017 · 10 comments
Open

What to put into OANDA_ACCOUNT= #2

hoverlord opened this issue Jun 21, 2017 · 10 comments

Comments

@hoverlord
Copy link

Hi,

I opened up an Acc at Oanda and got the api key. But what value is supposed to be put in at OANDA_ACCOUNT=?

@rxmg-joeldg
Copy link
Contributor

You will need to get the Oanda API tokens from Oanda

@hoverlord
Copy link
Author

I got that solved: OANDA_ACCOUNT means your accountID, you will get it in the e-mail when you open a "real" trading account

@avanderbergh
Copy link

I keep getting this following error when running the streaming.py script

{
	"code" : 1,
	"message" : "Invalid or malformed argument: accountId",
	"moreInfo" : "http:\/\/developer.oanda.com\/docs\/v1\/troubleshooting\/#errors"
}

I'm using the demo environment and the Account ID I received for my "real" trading account. I can't sign into my "real" account until it's checked, I think. Is there a different Account ID for the demo account? I've tried all combinations of API key & account ID, but still no luck...

@ak9250
Copy link

ak9250 commented Jul 10, 2017 via email

@mingfang
Copy link

I just signed up today and it looks like they are no longer allowing v1 accounts to be added.

You can get v2 accounts like this

curl -H "Authorization: Bearer XXXX-XXXX" https://api-fxpractice.oanda.com/v3/accounts

@ghost
Copy link

ghost commented Jan 13, 2018

For the missing account ID on Demo accounts. Log into your demo account, click on "My Account" in the top right (if you're not already on your My Account page). There should be something for Add Sub-Accounts. Click on it. You should then be looking at a screen to add a new sub account. On the left side there should be a list for exiting sub accounts. You should have one there already with a balance. Mine had $100,000.00. Click on that and then you should see the account ID in the Account Summary section on the right. It should look something like "101-001-5249467-001". If you use an account with no balance you may get a new error. Good luck!

@geni94
Copy link

geni94 commented Nov 25, 2018

For the missing account ID on Demo accounts. Log into your demo account, click on "My Account" in the top right (if you're not already on your My Account page). There should be something for Add Sub-Accounts. Click on it. You should then be looking at a screen to add a new sub account. On the left side there should be a list for exiting sub accounts. You should have one there already with a balance. Mine had $100,000.00. Click on that and then you should see the account ID in the Account Summary section on the right. It should look something like "101-001-5249467-001". If you use an account with no balance you may get a new error. Good luck!

I don't know if I've ever seen a worse User Experience than Oanda's...

@suryakanigolla
Copy link

For the missing account ID on Demo accounts. Log into your demo account, click on "My Account" in the top right (if you're not already on your My Account page). There should be something for Add Sub-Accounts. Click on it. You should then be looking at a screen to add a new sub account. On the left side there should be a list for exiting sub accounts. You should have one there already with a balance. Mine had $100,000.00. Click on that and then you should see the account ID in the Account Summary section on the right. It should look something like "101-001-5249467-001". If you use an account with no balance you may get a new error. Good luck!

I got my account ID using that method but I still get an exception "pyoanda.exceptions.BadRequest: OCode-400: Invalid or malformed resource identifier: accountId"

@Akash-Nayar
Copy link

For the missing account ID on Demo accounts. Log into your demo account, click on "My Account" in the top right (if you're not already on your My Account page). There should be something for Add Sub-Accounts. Click on it. You should then be looking at a screen to add a new sub account. On the left side there should be a list for exiting sub accounts. You should have one there already with a balance. Mine had $100,000.00. Click on that and then you should see the account ID in the Account Summary section on the right. It should look something like "101-001-5249467-001". If you use an account with no balance you may get a new error. Good luck!

I got my account ID using that method but I still get an exception "pyoanda.exceptions.BadRequest: OCode-400: Invalid or malformed resource identifier: accountId"

I had this issue when using the pyoanda library, but it worked for me when I switched to oandapyV20.

@valentasm1
Copy link

Go to https://www.oanda.com/demo-account/funding/ and you find accound id "v20 Account Number XXX-XXX-XXXXXXX-XXX"

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

9 participants