Add OutdatedClientVersion exception in bfxapi/websocket/errors.py. Add check for version mismatch between client and server. Add support for error event.

This commit is contained in:
Davide Casale
2022-11-15 18:06:21 +01:00
parent 217f767a30
commit 7fcd2e0970
3 changed files with 18 additions and 5 deletions

View File

@@ -23,4 +23,11 @@ class InvalidAuthenticationCredentials(BfxWebsocketException):
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
"""
pass
class OutdatedClientVersion(BfxWebsocketException):
"""
This error indicates a mismatch between the client version and the server WSS version.
"""
pass