dydxprotocol / dydx-v3-python

Python client for dYdX (API v3)
Apache License 2.0
304 stars 174 forks source link

Api problem #183

Open lobsteinda opened 1 year ago

lobsteinda commented 1 year ago

Hello,

api.dydx.exchange as well as api.stage.dydx.exchange seems to be down.

I have the following message from the python wrapper :

HTTPSConnectionPool(host='api.stage.dydx.exchange', port=443): Max retries exceeded with url: /v3/orders/18480c0d2c6696b4755cb502e7d1102f66e220f46bf93df2e8c45bba5910dde (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f5c45ca0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

Is it the case for everyone? Thanks

greenfield-br commented 1 year ago

got the same message. no, i don't think the api is down. some of my orders pass, some don't. and it is not always the same. so i believe it is related with the rate limit control that the api endpoint imposes. for better or worse, dydx ain't no binance.

greenfield-br commented 1 year ago

i just solved this problem i was also having it myself. apparently you cannot have from the same ip multiple sessions on the same client. so, what i did was to get everything i need from private client in one batch of request on the same process. that made it work. if you'd like more clarification, please, be my guest.