You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
490 B

from huobi.constant import ApiVersion
class WebsocketRequest(object):
def __init__(self):
self.subscription_handler = None
self.auto_close = False # close connection after receive data, for subscribe set False, for request set True
self.is_trading = False
self.is_mbp_feed = False
self.error_handler = None
self.json_parser = None
self.update_callback = None
self.api_version = ApiVersion.VERSION_V1 # v1 as default