Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-y committed Sep 18, 2019
1 parent 93d60c2 commit e301e09
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion huobi/impl/utils/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion huobi/impl/websocketconnection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import threading
import websockets
import websocket
import gzip
import ssl
import logging
Expand Down
6 changes: 0 additions & 6 deletions huobi/impl/websocketrequestimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion huobi/subscriptionclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e301e09

Please sign in to comment.