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

secmaster_db_symbol_loader fails with insufficient auth #6

Open
hallicarnassus opened this issue Jan 5, 2021 · 4 comments
Open

secmaster_db_symbol_loader fails with insufficient auth #6

hallicarnassus opened this issue Jan 5, 2021 · 4 comments

Comments

@hallicarnassus
Copy link

hallicarnassus commented Jan 5, 2021

Built using Ubuntu 16.04.7 LTS
Docker version 20.10.1, build 831ebea
docker-compose version 1.27.4, build 40524192

Traceback (most recent call last):
File "/home/jovyan/work/q_pack/db_pack/schema/secmaster_db_symbol_loader.py", line 131, in
main()
File "/home/jovyan/work/q_pack/db_pack/schema/secmaster_db_symbol_loader.py", line 118, in main
symbols = parse_wiki_forex()
File "/home/jovyan/work/q_pack/db_pack/schema/secmaster_db_symbol_loader.py", line 38, in parse_wiki_forex
rv = client.request(r)
File "/opt/conda/lib/python3.8/site-packages/oandapyV20/oandapyV20.py", line 305, in request
response = self.__request(method, url,
File "/opt/conda/lib/python3.8/site-packages/oandapyV20/oandapyV20.py", line 242, in __request
raise V20Error(response.status_code,
oandapyV20.exceptions.V20Error: {"errorMessage":"Insufficient authorization to perform request."}

@drbothen
Copy link

drbothen commented Jan 7, 2021

This is related to the oanda api creds not being updated.

You need to supply your oanda creds to this file: https://github.com/saeed349/Microservices-Based-Algorithmic-Trading-System/blob/master/Storage/q_pack/q_credentials/oanda_cred.py

@himanshueip
Copy link

I dont have onda account and they have close account opening for india

@guinmoon
Copy link

Hi. I heve valid acc_id_practice and token_practice, i test it on curl -H "Authorization: Bearer 65977df04d32049a40a9b64cb802ca6a-*******" https://api-fxtrade.oanda.com/v3/accounts
and have response. But in secmaster_db_symbol_loader i have code 401 and {"errorMessage":"Insufficient authorization to perform request."}
As far as I understand 401 is a malformed request error.

@userLlamma
Copy link

I guess it works without this oanda cred, and this [oanda_cred.py] in the repo only stands for en example?

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

5 participants