mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Add type hinting support to bfxapi.websocket.client.bfx_websocket_client.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user