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
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