We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello all,
I tried: import configparser # 1 import oandapy as opy # 2
#read oanda.cfg config = configparser.ConfigParser() # 3 config.read('oanda.cfg') # 4
#store token in variable access_token_wk=config['oanda']['access_token'] account_id=config['oanda']['account_id'] print(account_id) #print(access_token_wk) oanda = opy.API(environment='practice',access_token=access_token_wk) # 5 list=oanda.get_instruments(account_id) print(list)
but I get the next error: OandaError: OANDA API returned error code 1 (Invalid or malformed argument: accountId)
How can I solve this?
The text was updated successfully, but these errors were encountered:
What does your account ID look like? If it's of the format 1-2-3-4 it's a v20 account and you'll have to use the v20 API/library
Sorry, something went wrong.
Where can I find that code? Or is it the same as my user name? I thought it was the latter.
https://github.com/oanda/v20-python provides an api that allows you to work with v20 accounts
To be more specific: https://github.com/oanda/v20-python-samples/blob/master/src/account/instruments.py
No branches or pull requests
Hello all,
I tried:
import configparser # 1
import oandapy as opy # 2
#read oanda.cfg
config = configparser.ConfigParser() # 3
config.read('oanda.cfg') # 4
#store token in variable
access_token_wk=config['oanda']['access_token']
account_id=config['oanda']['account_id']
print(account_id)
#print(access_token_wk)
oanda = opy.API(environment='practice',access_token=access_token_wk) # 5
list=oanda.get_instruments(account_id)
print(list)
but I get the next error:
OandaError: OANDA API returned error code 1 (Invalid or malformed argument: accountId)
How can I solve this?
The text was updated successfully, but these errors were encountered: