Closed warproxxx closed 2 years ago
you'd have to register an exception handler, here: https://github.com/bmoscon/cryptofeed/blob/master/cryptofeed/feedhandler.py#L122
also see https://github.com/bmoscon/cryptofeed/issues/506 where I posted an example of a custom exception handler
I am listening to bybit websocket and doing operations on trades
Whenever the live wss goes down, I get this expected trackback error.
Because of timeout=-1 the program continues to run as expected once the socket is back. But whenever there an error in wss (ie the above takes place) i want to call a function (to cancel all orders in bybit). How do i call a function on error?