From e301e097c159f1a6799e147373b88518f66d509c Mon Sep 17 00:00:00 2001 From: devin-y Date: Wed, 18 Sep 2019 16:30:15 +0800 Subject: [PATCH] remove debug --- huobi/impl/utils/channels.py | 1 - huobi/impl/websocketconnection.py | 2 +- huobi/impl/websocketrequestimpl.py | 6 ------ huobi/subscriptionclient.py | 1 - 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/huobi/impl/utils/channels.py b/huobi/impl/utils/channels.py index d8c2bc0..bf5d2c5 100644 --- a/huobi/impl/utils/channels.py +++ b/huobi/impl/utils/channels.py @@ -35,7 +35,6 @@ def orders_update_new_channel(symbol): channel["op"] = "sub" channel["cid"] = str(get_current_timestamp()) channel["topic"] = "orders." + symbol + ".update" - print(channel) return json.dumps(channel) diff --git a/huobi/impl/websocketconnection.py b/huobi/impl/websocketconnection.py index 2940c54..97145e7 100644 --- a/huobi/impl/websocketconnection.py +++ b/huobi/impl/websocketconnection.py @@ -1,5 +1,5 @@ import threading -import websockets +import websocket import gzip import ssl import logging diff --git a/huobi/impl/websocketrequestimpl.py b/huobi/impl/websocketrequestimpl.py index 62b3ff5..135776a 100644 --- a/huobi/impl/websocketrequestimpl.py +++ b/huobi/impl/websocketrequestimpl.py @@ -213,20 +213,15 @@ def json_parse(json_wrapper): return request def subscribe_order_update_new(self, symbols, callback, error_handler=None): - print ("enter subscribe_order_update_new ") check_symbol_list(symbols) check_should_not_none(callback, "callback") - print("enter subscribe_order_update_new impl") def subscription_handler(connection): - print ("enter subscribe_order_update_new subscription_handler") for val in symbols: connection.send(orders_update_new_channel(val)) time.sleep(0.01) def json_parse(json_wrapper): - print ("enter subscribe_order_update_new parse") - print(json_wrapper) ch = json_wrapper.get_string("topic") parse = ChannelParser(ch) order_update_event = OrderUpdateNewEvent() @@ -255,7 +250,6 @@ def json_parse(json_wrapper): request.json_parser = json_parse request.update_callback = callback request.error_handler = error_handler - print ("enter subscribe_order_update_new request") return request def subscribe_account_event(self, mode, callback, error_handler=None): diff --git a/huobi/subscriptionclient.py b/huobi/subscriptionclient.py index bc55efa..c2cb689 100644 --- a/huobi/subscriptionclient.py +++ b/huobi/subscriptionclient.py @@ -126,7 +126,6 @@ def subscribe_order_update_new_event(self, symbols: 'str', callback, error_handl pass :return: No return """ - print("enter subscribe_order_update_new_event") symbol_list = symbols.split(",") request = self.websocket_request_impl.subscribe_order_update_new(symbol_list, callback, error_handler) self.__create_connection(request)