You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When receiving the HTTP 403 response code we not only receive HTML (instead of JSON), we also need to back off for some significant time. This is now managed by the connection manager from the roq-io library: a new suspend feature has been added.
The roq-binance gateway has some new flags:
--rest_back_off_delay is used to suspend a HTTP connection after having seen the 403 response code
The online documentation from Binance states that a back-off period of 5 minutes is required, this is also the default value for the --rest_back_off_delay flag.
--rest_terminate_on_403 can be used to terminate the gateway after seeing the 403 response code
Due to the complexity of the download procedure (refresh listen keys, multiple requests for open orders, etc.), it may be preferable to restart the gateway for some scenarios. This flag makes it possible.
Not all exceptions were handled during JSON parsing.
This manifested itself during Binance system maintenance when a HTML response is received instead of the expected JSON.
Previous action was to only log the exception and then disconnect the stream.
This issue will be used to verify the more general issue #292
The text was updated successfully, but these errors were encountered: