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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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 ( )