def __init__(self): self.platform = Platform.PLATFORM_FCOIN.value self.data_type = PlatformDataType.PLATFORM_DATA_TICKER.value BaseSync(self.platform, self.data_type) self.client = FcoinClient() self._init_log() self._sender = MqSender('3', 'trade') self.wdata = {}
def __init__(self): self.platform = Platform.PLATFORM_FCOIN.value self.data_type = PlatformDataType.PLATFORM_DATA_KLINE.value self.interval = 'H1' BaseSync(self.platform, self.data_type, self.interval) self.client = FcoinClient() self._init_log() self._sender = MqSender('3', 'kline') # self._sender = MqSender('fcoin', 'kline') self.wdata = {}
def __init__(self): self.platform = Platform.PLATFORM_FCOIN.value self.data_type = PlatformDataType.PLATFORM_DATA_TICKER.value BaseSync(self.platform, self.data_type) self.client = FcoinClient() self._init_log() try: self._sender = MqSender('3', 'ticker') except Exception as e: print('ohhh== ERROR= ', e) self._sender = None self.wdata = {}