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.

16 lines
485 B

from huobi.client.account import AccountClient
from huobi.constant import *
def callback(account_change_event: 'AccountChangeEvent'):
account_change_event.print_object()
print()
account_client = AccountClient(api_key=g_api_key,
secret_key=g_secret_key,
init_log=True)
# account_client.sub_account_update(AccountBalanceMode.TOTAL, callback)
account_client.sub_account_update(AccountBalanceMode.BALANCE, callback)