Add type hinting support to bfxapi.websocket.client.bfx_websocket_client.

This commit is contained in:
Davide Casale
2023-06-19 04:57:33 +02:00
parent 8b196b8f9c
commit f1e678e043
5 changed files with 341 additions and 252 deletions

View File

@@ -5,9 +5,7 @@ from .rest_merchant_endpoints import RestMerchantEndpoints
class BfxRestInterface:
VERSION = 2
def __init__(self, host, credentials = None):
api_key, api_secret = (credentials['api_key'], credentials['api_secret']) if credentials else (None, None)
def __init__(self, host, api_key = None, api_secret = None):
self.public = RestPublicEndpoints(host=host)
self.auth = RestAuthEndpoints(host=host, api_key=api_key, api_secret=api_secret)
self.merchant = RestMerchantEndpoints(host=host, api_key=api_key, api_secret=api_secret)