def run(self): while True: try: result = huobi.get_trade(self.transactionModel.symbol) tickUtil.add(result, self.transactionModel.symbol) except Exception as err: logUtil.info('TradeThread error', err)
def exposed_get_trade(self, symbol): return hb.get_trade(symbol)