mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
11 lines
327 B
Python
11 lines
327 B
Python
from .websocket import BfxWebsocketClient
|
|
|
|
from enum import Enum
|
|
|
|
class Constants(str, Enum):
|
|
WSS_HOST = "wss://api.bitfinex.com/ws/2"
|
|
PUB_WSS_HOST = "wss://api-pub.bitfinex.com/ws/2"
|
|
|
|
class Client(object):
|
|
def __init__(self, WSS_HOST: str = Constants.WSS_HOST):
|
|
self.wss = BfxWebsocketClient(host=WSS_HOST) |