mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Add support for various new authenticated channels. Add new typings in bfxapi/websocket/typings.py. Add BfxWebsocketException in bfxapi/websocket/errors.py.
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
class ConnectionNotOpen(Exception):
|
||||
__all__ = [
|
||||
"BfxWebsocketException",
|
||||
"ConnectionNotOpen",
|
||||
"InvalidAuthenticationCredentials"
|
||||
]
|
||||
|
||||
class BfxWebsocketException(Exception):
|
||||
"""
|
||||
Base class for all exceptions defined in bfx/websocket/errors.py.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
class ConnectionNotOpen(BfxWebsocketException):
|
||||
"""
|
||||
This error indicates an attempt to communicate via websocket before starting the connection with the servers.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
class AuthenticationCredentialsError(Exception):
|
||||
class InvalidAuthenticationCredentials(BfxWebsocketException):
|
||||
"""
|
||||
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user