-
Notifications
You must be signed in to change notification settings - Fork 19
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
HTTPError: 401 Client Error: Unauthorized for url: https://testnet-api.delta.exchange/v2/positions?product_id=27 #46
Comments
Discussed with PM, a work around: |
Hi line 21, in Thanks |
You need to add both IPV6 and IPV4 addresses, in that order (IPV6 address,IPV4 address) |
I'm getting below error on using python client, I've already whitelisted my ip (from http://whatismyipaddress.com) and used the api keys as mentioned on readme.
Below is the call being made and error I'm getting, in client I can already see auth=True is passed.
delta_client.get_position(27)
Traceback (most recent call last):
File "", line 1, in
File "/venv_p3/lib/python3.11/site-packages/delta_rest_client/delta_rest_client.py", line 138, in get_position
response = self.request(
^^^^^^^^^^^^^
File "/venv_p3/lib/python3.11/site-packages/delta_rest_client/delta_rest_client.py", line 68, in request
res.raise_for_status()
File "/venv_p3/lib/python3.11/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://testnet-api.delta.exchange/v2/positions?product_id=27
The text was updated successfully, but these errors were encountered: