Add bfxapi package. Add bfxapi.websocket subpackage. Add requirements.txt file.

This commit is contained in:
Davide Casale
2022-11-07 18:35:39 +01:00
parent 8fd261fd19
commit 048eedcd8e
6 changed files with 89 additions and 0 deletions

11
bfxapi/client.py Normal file
View File

@@ -0,0 +1,11 @@
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)