ccxt icon indicating copy to clipboard operation
ccxt copied to clipboard

Bittrex: Connection closed by remote server

Open brandsimon opened this issue 5 years ago • 5 comments

I use websockets for some exchanges, but only with bittrex there is the following error:

ERROR - Connection closed by remote server, closing code 1000
Traceback (most recent call last):
  File ".venv/src/ccxtpro/python/ccxtpro/bittrex.py", line 467, in watch_order_book
    orderbook = await self.subscribe_to_order_book(negotiation, symbol, limit, params)
  File ".venv/src/ccxtpro/python/ccxtpro/bittrex.py", line 482, in subscribe_to_order_book
    return await self.send_request_to_subscribe(negotiation, messageHash, subscription)
  File ".venv/src/ccxtpro/python/ccxtpro/bittrex.py", line 96, in send_request_to_subscribe
    return await self.watch(url, messageHash, request, messageHash, subscription)
ccxt.base.errors.NetworkError: Connection closed by remote server, closing code 1000

Sometimes the code works for hours, sometimes the error occurs after a few minutes. Is there a way to prevent it or recover?

brandsimon avatar Jul 18 '21 20:07 brandsimon

Anything new? I think, the same happened with poloniex.

brandsimon avatar Jul 25 '21 17:07 brandsimon

Some exchanges work flawless, but some have this issue. How can I handle the error properly?

omnigolp avatar Aug 01 '21 14:08 omnigolp

@brandsimon @omnigolp we're investigating it, looking for a fix, will post our findings here.

kroitor avatar Aug 01 '21 14:08 kroitor

How is the investigation going?

omnigolp avatar Sep 05 '21 16:09 omnigolp

bittrex is closed.

ttodua avatar Aug 20 '24 18:08 ttodua