Add authenticate method in BfxWebsocketClient. Add API_KEY and API_SECRET to Client's constructor parameters. Add new AuthenticationCredentialsError exception.

This commit is contained in:
Davide Casale
2022-11-09 18:26:30 +01:00
parent 7e416219e0
commit 1fc9aacd86
3 changed files with 51 additions and 13 deletions

View File

@@ -1,7 +1,13 @@
class ConnectionNotOpen(Exception):
"""
This error indicates an attempt to communicate via websocket before starting the connection with the servers.
"""
pass
class AuthenticationCredentialsError(Exception):
"""
This error indicates that the user has provided incorrect credentials (API-KEY and API-SECRET) for authentication.
"""
pass