Forums

Issue connecting to DYDX api

throwing this error: requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.dydx.exchange', port=443): Max retries exceeded with url: /v3/markets (Caused by ProxyError('Ca nnot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

heres the docs: https://github.com/dydxprotocol/dydx-v3-python

i believe its an issue with api whitelisting, i've just signed up, paid and cloned my script am hoping to have this fixed asap

It doesn't need to be fixed, because it's not broken. On paid account you have unrestricted internet access, so you don't need it whitelisted. If you still want us to consider that endpoint for our whitelist, please send us a link from dydx.exchange to the github repo documentation as we whitelist only official APIs.

the code works on my local... but i'm throwing this error on your servers on a paid account,

requests.exceptions. ProxyError: HTTPSConnectionPool(host='api.dydx.exchange', port=443): Max retries exceeded with url: /v3/markets (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

github:https://github.com/dydxprotocol/dydx-v3-python

Is it possible that the console that you run it in was created before you upgraded your account? Could you try with the new console?

it appears it has been an error in my code, apologies.

thank you for replying so quickly

Glad to hear that you made it work!