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.

14 lines
338 B

from huobi.client.trade import TradeClient
from huobi.constant import *
def callback(upd_event: 'OrderUpdateEvent'):
print("---- order update : ----")
upd_event.print_object()
print()
trade_client = TradeClient(api_key=g_api_key, secret_key=g_secret_key, init_log=True)
trade_client.sub_order_update("eosusdt", callback)