from huobi.client.account import AccountClient from example.api_key import * account_client = AccountClient(api_key=g_api_key,secret_key=g_secret_key) ''' https://huobiapi.github.io/docs/spot/v1/cn/#bd9157656f spot:现货账户, margin:逐仓杠杆账户, otc:OTC 账户, point:点卡账户, super-margin:全仓杠杆账户, investment: C2C杠杆借出账户, borrow: C2C杠杆借入账户, 矿池账户: minepool, ETF账户: etf, 抵押借贷账户: crypto-loans 逐仓/全仓/C2C杠杆账户(margin/super-margin/borrow)会在第一次划转资产时创建,如果未划转过资产则不会有杠杆账户。 ''' account_type = "etf" #币币账户余额 asset_valuation = account_client.get_account_asset_valuation(account_type=account_type, valuation_currency="usd") asset_valuation.print_object()